After a lot of fiddling, the reason for this error is that when IJulia
installs the jupyter kernel, it sets the project path to default i.e. --project=@.
in the C:\Users\julius\AppData\Roaming\jupyter\kernels\julia-1.10\kernel.json
file
jupyter kernelspec list
julia-1.10 C:\Users\s\AppData\Roaming\jupyter\kernels\julia-1.10
We need to manually alter the file to change the project to the one we want as shown below. We have replaced --project=@.
with --project=q
kernel.json
{
"display_name": "Julia 1.10.0-DEV",
"argv": [
"c:\\julia110\\bin\\julia.exe",
"-i",
"--color=yes",
"--project=q",
"c:\\julia110\\.julia\\packages\\IJulia\\AQu2H\\src\\kernel.jl",
"{connection_file}"
],
"language": "julia",
"env": {},
"interrupt_mode": "message"
}
original kernel.json
{
"display_name": "Julia 1.10.0-DEV",
"argv": [
"c:\\julia110\\bin\\julia.exe",
"-i",
"--color=yes",
"--project=@.",
"c:\\julia110\\.julia\\packages\\IJulia\\AQu2H\\src\\kernel.jl",
"{connection_file}"
],
"language": "julia",
"env": {},
"interrupt_mode": "message"
}
Now both quarto
and jupyter
are able to find IJulia
.