Command line options for Julia kernels in Jupyter

question
jupyter

#1

I haven’t been able to figure out how to specify command line options (specifically, -O3 and --check-bounds=no) for the Julia kernel that Jupyter uses. This would be handy for profiling. Any ideas?
Thanks!


#2

Not sure if this is the official way to do it, but I believe the relevant information is here. I think you can just copy your julia-0.5 kernel folder with a different name, and change the options. IIRC that’s what I did to generate a no-inline kernel:

{
  "display_name": "Julia 0.4.5 (inline=no)",
  "argv": [
    "/Applications/Julia-0.4.5.app/Contents/Resources/julia/bin/julia",
    "-i",
    "-F",
    "--inline=no",
    "/Users/cedric/.julia/v0.4/IJulia/src/kernel.jl",
    "{connection_file}"
  ],
  "language": "julia"
}

#3

Awesome, thanks so much!