# Julia notebooks takes too long connect to the kernel while using Jupyter

**URL:** <https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509>\
**Category:** New to Julia\
**Tags:** installation\
**Created:** [October 10, 2021, 1:13pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509 "2021-10-10T13:13:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaibhavi\_Bhalchandra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vaibhavi_bhalchandra/32/29837_2.png) [@Vaibhavi\_Bhalchandra](https://discourse.julialang.org/u/Vaibhavi_Bhalchandra)\
**Post date:** [October 10, 2021, 1:13pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/1 "2021-10-10T13:13:35Z")

</div>

I am using ubuntu, and installed julia version 1.0.4 using “sudo snap install julia --classic”. Whenever I try to use julia in jupyter- it tasks solid 10-15 minutes to connect to the kernel and start running. could this be due to my local system or has such a thing been observed-and resolved before?

---

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [October 10, 2021, 1:58pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/2 "2021-10-10T13:58:21Z")

</div>

Hey @Vaibhavi_Bhalchandra - just a suggestion but currently, we are version at 1.6 of Julia and the Ubuntu repositories are generally far behind the Julia release cycle. I would suggest trying to install the new version here: [Download Julia](https://julialang.org/downloads/) For me, at this time, the kernel will usually get connected within 30 seconds if not less. If you need help installing, let us know here and we will be happy to help.

Also, welcome to the Julia Discourse! I hope you have a great time here. 😃

---

<div class="post-metadata">

**Author:** ![Vaibhavi\_Bhalchandra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vaibhavi_bhalchandra/32/29837_2.png) [@Vaibhavi\_Bhalchandra](https://discourse.julialang.org/u/Vaibhavi_Bhalchandra)\
**Post date:** [October 10, 2021, 4:01pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/3 "2021-10-10T16:01:54Z")

</div>

Hey @TheCedarPrince , Thank you 🙂  
so I updated to 1.4.0, but it’s still really slow while connecting to the kernel. One thing I did notice now was that, my python3 kernel is located here “/usr/share/jupyter/kernels/python3”, while julia kernel is “/home/vaibhavi/.local/share/jupyter/kernels/julia-1.4” is here. Could this might be a problem?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [October 10, 2021, 4:24pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/4 "2021-10-10T16:24:19Z")

</div>

The current Julia release is 1.6.3, you should really use that. Installations through the various Linux package managers are often outdated and problematic.

---

<div class="post-metadata">

**Author:** ![Vaibhavi\_Bhalchandra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vaibhavi_bhalchandra/32/29837_2.png) [@Vaibhavi\_Bhalchandra](https://discourse.julialang.org/u/Vaibhavi_Bhalchandra)\
**Post date:** [October 11, 2021, 10:58am UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/5 "2021-10-11T10:58:41Z")

</div>

I updated to 1.6.3, but the problem persists.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [October 11, 2021, 1:03pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/6 "2021-10-11T13:03:35Z")

</div>

Great thanks, at least that means it shouldn’t be an issue with your Julia version or the installation.

Just to make sure people understand your problem: when you start Julia and then do `using IJulia; notebook()` a Jupyter session is started, you can then start a new notebook with the Julia kernel, and what you’re experiencing is a 10-15 minute wait while the status indicator on the top right of the notebook shows “Kernel starting, please wait…”?

It shouldn’t take longer than 10-15 seconds (rather than minutes) to start a kernel on a modern laptop, so there’s definitely something off about your setup.

---

<div class="post-metadata">

**Author:** ![Vaibhavi\_Bhalchandra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vaibhavi_bhalchandra/32/29837_2.png) [@Vaibhavi\_Bhalchandra](https://discourse.julialang.org/u/Vaibhavi_Bhalchandra)\
**Post date:** [October 11, 2021, 2:54pm UTC](https://discourse.julialang.org/t/julia-notebooks-takes-too-long-connect-to-the-kernel-while-using-jupyter/69509/7 "2021-10-11T14:54:53Z")

</div>

Hey, yes that is what I was doing.

I instead, now tried giving the command `jupyter-notebook` directly in the terminal (not in the Julia prompt), then manually chose Julia-1.6.3 as a kernel in the browser-jupyter session, and it works. Takes about 30-45 seconds to connect to the kernel.

Thanks for all the suggestions!
