# WinPython + JupyterLab + Julia 1.5.2 + Julia 1.6.5

**URL:** <https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363>\
**Category:** General Usage\
**Tags:** jupyter\
**Created:** [January 10, 2022, 9:41pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363 "2022-01-10T21:41:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 10, 2022, 9:41pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/1 "2022-01-10T21:41:32Z")

</div>

Hello,

Since nearly one year, I have been using `WinPython + JupyterLab + Julia 1.5.2`  
I can’t remember how I managed to configure that at that time.  
Using JupyterLab that came with WinPython, I can create `Python` or `Julia 1.5.2` notebooks.  
I can use both languages side-by-side, which is very convenient.

Today, I installed `Julia 1.6.5` and I added the IJulia package from the REPL.  
I expected to see a configuration `WinPython + JupyterLab + Julia 1.5.2 + Julia 1.6.5`.  
But nothing has changed! `Julia 1.6.5` doesn’t appear in JupyterLab.  
I can use `Julia 1.6.5` by lauching JupyterLab from the REPL, but then my Python environment is gone.

Could you help me ?  
I would like to use my existing Python environment and the `Julia 1.6.5` together

Thanks

Michel

---

<div class="post-metadata">

**Author:** ![roflmaostc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roflmaostc/32/30123_2.png) [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Post date:** [January 10, 2022, 9:51pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/2 "2022-01-10T21:51:42Z")

</div>

Can you try

```julia
using Pkg
Pkg.build("IJulia")

```

At least in normal Jupyter this adds the new Julia version as kernel.

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 10, 2022, 10:18pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/3 "2022-01-10T22:18:37Z")

</div>

Thanks!

I did that and then

```julia
using IJulia
jupyterlab()

```

This launches a JupyterLab instance from the `Julia 1.6.5` folder.  
The nice thing is that both versions of Julia are available.  
Unfortunately, I have no acces to WinPython then.  
Instead it takes Python from `...\.julia\conda\3` which is fresh new.  
I would prefer to use my former WinPython installation with all my stuff!

The JupyterLab packaged with WinPython makes `Julia 1.5.2` avaliable.  
I can’t remember how I did the install one year ago.

Any idea?  
How does a JupyterLab instance know where all the kernels are?

Thanks

Michel

---

<div class="post-metadata">

**Author:** ![roflmaostc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roflmaostc/32/30123_2.png) [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Post date:** [January 10, 2022, 10:20pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/4 "2022-01-10T22:20:29Z")

</div>

In the documentation is something mentioned  
[https://julialang.github.io/IJulia.jl/stable/manual/installation/](https://julialang.github.io/IJulia.jl/stable/manual/installation/)

Does that help somehow?

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 10, 2022, 10:45pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/5 "2022-01-10T22:45:49Z")

</div>

Thanks!

Just had a look at [Installation · IJulia](https://julialang.github.io/IJulia.jl/stable/manual/installation/)  
I notied a remark about `ENV["JUPYTER"]`, and was quite exceited!  
I then did this:

```julia
ENV["JUPYTER"] = "...\\WPy64-3940"
using Pkg
Pkg.rm("IJulia")
Pkg.add("IJulia")
Pkg.build("IJulia")

```

Unfortunately, it didn’t change anything.  
But I have the feeling I come close to the solution !  
I go to bed, and hopefully I solve that tomorrow !!!

Any suggestion again welcome!

Thanks

Michel

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 11, 2022, 10:38am UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/6 "2022-01-11T10:38:37Z")

</div>

Woke up early today!  
But not yet a solution!  
Using

`ENV["JUPYTER"] = "...\\WPy64-3940\\Jupyter Lab.exe"`

does not solve the problem …

In the WinPython distribution, I observe there is a notebook called `installing_julia_and_ijulia.ipynb`.  
But it looks like it deals with a very olde version of Julia.  
And this script is rather obscure to me, I am not ready to go futher!

Any suggestion still welcome!

Michel

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [January 11, 2022, 11:03am UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/7 "2022-01-11T11:03:52Z")

</div>

[This](https://github.com/JuliaLang/IJulia.jl/issues/555) seems to say similar things to what you tried, but maybe something useful?

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 11, 2022, 1:12pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/8 "2022-01-11T13:12:59Z")

</div>

Thanks!  
Interresting thread.  
Comes close, but no clue for my issue.  
Michel

---

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [January 11, 2022, 2:19pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363/9 "2022-01-11T14:19:57Z")

</div>

I got it !!!  
Thanks to all of you !

I found out that the usual IJulia installation from the Julia REPL  
creates a `kernel.json` file in a folder like :  
`C:\Users\mytoys\AppData\Roaming\jupyter\kernels\julia-1.6`.  
This where JupyterLab will look for kernels when it is started from the Julia REPL.

But the JupyterLab included in WinPython won’t look there.  
Instead, it looks in a folder like :  
`C:\Users\mytoys\Desktop\WPy64-3940\python-3.9.4.amd64\share\jupyter\kernels`

I simply solved the problem by copying the `julia-1.6` folder from the first location to the second.

And now, I am happy!

Thanks,

Michel
