# Slow Jupyter with Julia

**URL:** <https://discourse.julialang.org/t/slow-jupyter-with-julia/75391>\
**Category:** New to Julia\
**Tags:** ttfp\
**Created:** [January 28, 2022, 8:45pm UTC](https://discourse.julialang.org/t/slow-jupyter-with-julia/75391 "2022-01-28T20:45:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dal233](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dal233/32/33279_2.png) [@dal233](https://discourse.julialang.org/u/dal233)\
**Post date:** [January 28, 2022, 8:45pm UTC](https://discourse.julialang.org/t/slow-jupyter-with-julia/75391/1 "2022-01-28T20:45:46Z")

</div>

When I run something simple like 1+1 in Jupyter using Julia, it is significantly slower than when I do the same thing with Python. How come? And is there a faster way to use Julia in Jupyter?

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [January 28, 2022, 9:36pm UTC](https://discourse.julialang.org/t/slow-jupyter-with-julia/75391/2 "2022-01-28T21:36:35Z")

</div>

Just the first time (after you started the notebook / the kernel) or always?

---

<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:** [January 28, 2022, 9:37pm UTC](https://discourse.julialang.org/t/slow-jupyter-with-julia/75391/3 "2022-01-28T21:37:44Z")

</div>

> [@dal233](#):
>
> When I run something simple like 1+1 in Jupyter using Julia, it is significantly slower than when I do the same thing with Python.

You’re just looking at startup time — Julia compiles a bunch of stuff the first time you run anything. After that it should be roughly the same speed (because the time to execute something trivial like `1+1` in Jupyter is dominated by the communication and front-end).

In general, loading new packages, and running a function for the first time in those packages, takes longer in Julia because of the time to compile things. (This will continue to get better over time, e.g. as Julia caches more compiled code and other strategies … search for “time to first plot” for lots of discussion.) But once that is done, things can run much more quickly, which is the main point of interest for large computations. See e.g. this blog post: [Mythbusting Julia speed](https://giordano.github.io/blog/2021-10-14-mythbusting-julia/)

---

<div class="post-metadata">

**Author:** ![dal233](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dal233/32/33279_2.png) [@dal233](https://discourse.julialang.org/u/dal233)\
**Post date:** [January 29, 2022, 1:36pm UTC](https://discourse.julialang.org/t/slow-jupyter-with-julia/75391/4 "2022-01-29T13:36:50Z")

</div>

Just the first time. Works similarly fast to Python after that. I noticed it also on one of the video tutorials for the language, where the tutor’s Jupyter seemed to run slowly - I guess she too was starting it up.
