Hi,
after upgrading my Mac (to Sequoia 15.0.1) and its Xcode and Homebrew packages I found that I cannot run Julia notebooks in Jupyter anymore, because the upgraded kernel (Julia 1.11.1) is apparently not found. Starting IJulia and opening a window with the Jupyter interface seems to work as usual, but when loading a notebook, I am presented with a window that asks me to select a kernel from a list that includes all the previous Julia versions I had installed (and have no more), but not the current one. This problem has never arisen before, as far as I recall; after previous upgrades the new Julia version was always found.
Did someone else encounter this problem as well, or does anybody know what to do?
I have a similar problem with Julia 1.11.1. Kernels just don’t work. I get thousands of error messages as Jupyter tries over and over to load the kernel. Julia is trying to build Revise and OhMyRepl, which shouldn’t happen as both are already built when using Julia from the REPL. I have a startup_ijulia.jl that contains:
try
using Revise
catch e
@warn "Error initializing Revise" exception = (e, catch_backtrace())
end
So, OhMyREPL shouldn’t even be loaded. I am using the same Python 3 and Jupyter install that I was using with Julia 1.10.1. All these problems began with Julia 1.11.1.
I am going to downgrade to Julia 1.10.1 to see if can get everything working again. Will report back.
So, it’s broken in 1.10.6 in the same ways. With no change to Python or Jupyter, the default Julia kernel only works to create a brand new notebook. But, that notebook can never be loaded–the Julia kernel just hangs trying to connect as Julia keeps struggling to build Revise, and OhMyREPL.
Next, I 'll try just not having startup.jl and startup_ijulia.jl and report back…
Update: so things work a bit better with Julia 1.10.6:
I still can’t launch Jupyter with using IJulia; jupyterlab()
I can launch jupyter lab from the shell and create notebooks with the Julia 1.10.6 kernel.
I can save and reload the notebook and it connects to the 1.10.6 kernel.
So, big improvement. I guess I’ll just wait until someone can request some debugging info from me about 1.11.1: or perhaps the problems are known and there will be an update.
===============
Last update.
I re-enabled (renamed) startup.jl and startup_ijulia.jl.
launched jupyter lab from shell (not within Julia using IJulia)
opened previous notebook and all worked as expected.
So, I conclude something’s pretty broken in 1.11.1 around IJulia and working with Jupyter lab.
I prefer jupyter for many reasons over Pluto. Don’t want to get into a big fight over that.
If a custom kernel that just changes the number of threads works fine, likely you just need to rebuild IJulia to re-install your default kernel (because the location of the julia binary has changed).
That’s the first thing I do when changing Julia versions! Didn’t help this time unfortunately, the best I could get was the kernel is stuck in “initializing” with seemingly nothing happening, starting all over now it just says “connecting” for a long time before changing to “no kernel”, all without error messages.
I believe you, of course. I do everything in the global environment. I have rebuilt IJulia multiple times. I set ENV[“JUPYTER”] to the binary for jupyter before I build. With 1.10.6 the kernel always starts, so I guess I’ll stick with it until there’s a maintenance release of 1.11. jupyter lab always starts from the shell; it’s not a big deal that it won’t start from Julia.
I realize it has to be a config problem. Any messages or logs that I can provide? I am not blocked from getting work done.