# How to set julia startup options in Jupyter notebook?

**URL:** <https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 18, 2018, 4:58pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998 "2018-05-18T16:58:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronubi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronubi/32/4085_2.png) [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Post date:** [May 18, 2018, 4:58pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998/1 "2018-05-18T16:58:31Z")

</div>

Are there Julia commands or environment settings that I can put at the top of a notebook (.ipynb) file, or put in .juliarc.jl, to get the same effect as launching julia from the command line with various option switches?

For example, I would sometimes like to do

```
 $ julia -O3

```

or

```
$ julia -g

```

or

```
$ julia -p 1

```

etc., but run in the jupyter-notebook environment rather than in a terminal.

Sorry if this has already been answered. I **did** search this forum, the docs, and Google, but haven’t found an answer yet. (I cross-posted this question as an issue on the jupyter/help github page.)

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [May 18, 2018, 5:13pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998/2 "2018-05-18T17:13:01Z")

</div>

This surely isn’t the answer that you’re looking for, but I thought I’d mention that using [Literate.jl](https://github.com/fredrikekre/Literate.jl) together with [Revise.jl](https://github.com/timholy/Revise.jl) is a great alternative to Jupyter notebooks (and it would be obvious how to do what you’re asking, because you could just do exactly what you already said).

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [May 18, 2018, 5:13pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998/3 "2018-05-18T17:13:04Z")

</div>

See [https://github.com/JuliaLang/IJulia.jl#installing-additional-julia-kernels](https://github.com/JuliaLang/IJulia.jl#installing-additional-julia-kernels)

---

<div class="post-metadata">

**Author:** ![ronubi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronubi/32/4085_2.png) [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Post date:** [May 18, 2018, 5:21pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998/4 "2018-05-18T17:21:08Z")

</div>

Thanks for the quick answer!
