Open proudindiv opened 6 months ago
1.10.3 works fine for me.
Did you try running build IJulia
to make sure it knows if the path to julia
has changed?
Try running /usr/bin/jupyter notebook
at the command line, so that you can see the whole error message in the terminal. See also https://julialang.github.io/IJulia.jl/stable/manual/troubleshooting/
Thanks, that gave me enough information to find out that the problem is in the jupyter kernel.json file that IJulia creates.
{
"display_name": "julia-1.10.3 1.10.3",
"argv": [
"/opt/julialang/julia-1.10.3/bin/julia",
"-i",
"--color=yes",
"julia-1.10.3",
"/home/gary/.julia/packages/IJulia/Vo51o/src/kernel.jl",
"{connection_file}"
],
"language": "julia",
"env": {},
"interrupt_mode": "signal"
}
I compared the julia-1.10.3 version of the file to my julia-1.10.2 version.
I manually removed the "julia-1.10.3",
line in the argv to make it work.
This is all behind the scenes and beyond my abilities, so I don't know if this is an issue for IJulia.jl.
I have the same problem and had to make the same equivalent fix in +1.10.4. I updated julia with 'juliaup' and added the new kernel after adding the new julia channel on the linux command line:
juliaup add 1.10.4
juliaup link +1.10.4 julia-1.10.4
gary@gary-NUC11BTMi9:~$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.4 (2024-06-04)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using IJulia
julia> installkernel("julia-1.10.4","julia-1.10.4")
[ Info: Installing julia-1.10.4 kernelspec in /home/gary/.local/share/jupyter/kernels/julia-1.10.4-1.10
"/home/gary/.local/share/jupyter/kernels/julia-1.10.4-1.10"
julia> using IJulia; notebook(detached=true)
[ Info: running `/usr/bin/jupyter notebook`
Process(setenv(`/usr/bin/jupyter notebook`; dir="/home/gary"), ProcessRunning)
I haven't found any documentation on what work flow to use to add new julia versions with the new juliaup installation method and how it fits in with IJulia package. I still had to find the ~/.local/share/jupyter/kernels/julia-1.10.4-1.10/julia-1.10.4-1.10/kernel.json
file and delete the "julia-1.10.4",
line.
Okay, no response on this for over half a year. Same thing happens with julia 1.11.1, on my fourth computer.
I've used many releases of julia over several years. The latest one fails with:
The older prior one still works fine, with
versioninfo()
in a juypter cell giving:Here is my installation of julia-1.10.3 from repl: