Configuring IJulia in MacOS

Hello,
I have been trying to install Julia into a MacOS, which I am not yet familiar with. As advided by the installation page, I tried:

curl -fsSL https://install.julialang.org | sh

I have added IJulia Package. But upon calling notebook(), I could not find the Julia kernel in the Jupyter notebook(). I would really appreciate any insights on how to get the notebook to recognize the Julia kernel.
Thanks and regards!

Sounds like it might be related to a change in the latest release: Fix macOS default Jupyter data directory to prioritize Application Su… by arafune · Pull Request #1238 · JuliaLang/IJulia.jl · GitHub

What does jupyter --data-dir show on your system?

1 Like

Thanks for the reply.

Jupyter --data-dir

results in:

/Users/lab123/Library/Jupyter

The first thing I try when this happens to to type

(@v1.12) pkg> build IJulia

in Pkg. That can clean up a lot of kernel confusion.

2 Likes

Ok, that’s most likely caused by IJulia then because it will now install kernels in ~/Library/Application Support/Jupyter. Sorry about that, I’ll see if we can get a fix in the next week or two. In the meantime, a simple workaround would be to go back to IJulia 1.34.0.

BTW, what version of Jupyter do you have?

Apologies for the late reply. When I run:
lab123@MacBook-Pro ~ % jupyter --version

I get:

Selected Jupyter core packages...
IPython          : 8.18.1
ipykernel        : not installed
ipywidgets       : not installed
jupyter_client   : 8.6.3
jupyter_core     : 5.8.1
jupyter_server   : 2.17.0
jupyterlab       : not installed
nbclient         : 0.10.2
nbconvert        : 7.17.0
nbformat         : 5.10.4
notebook         : not installed
qtconsole        : not installed
traitlets        : 5.14.3

However, If I run in Julia:

using IJulia
notebook()

The version is: 7.5.3

Should be fixed in v1.34.2: Changelog · IJulia