# Command line options for Julia kernels in Jupyter

**URL:** <https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732>\
**Category:** General Usage\
**Tags:** question, jupyter\
**Created:** [December 5, 2016, 1:00am UTC](https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732 "2016-12-05T01:00:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [December 5, 2016, 1:00am UTC](https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732/1 "2016-12-05T01:00:04Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [December 5, 2016, 3:11am UTC](https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732/2 "2016-12-05T03:11:46Z")

</div>

Not sure if this is the official way to do it, but I believe the relevant information is [here](http://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs). 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:

```julia
{
  "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"
}

```

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [December 5, 2016, 1:14pm UTC](https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732/3 "2016-12-05T13:14:17Z")

</div>

Awesome, thanks so much!

---

<div class="post-metadata">

**Author:** ![suiato](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/suiato/32/1713_2.png) [@suiato](https://discourse.julialang.org/u/suiato)\
**Post date:** [August 23, 2019, 2:59am UTC](https://discourse.julialang.org/t/command-line-options-for-julia-kernels-in-jupyter/732/4 "2019-08-23T02:59:16Z")

</div>

Just found in [https://github.com/JuliaLang/IJulia.jl](https://github.com/JuliaLang/IJulia.jl),  
using IJulia  
installkernel(“Julia nodeps”, “–depwarn=no”)
