Hi,
With the new Julia 1.12 update, my Jupyter notebook in VSCode doesn’t execute and the cells stay stuck like that:
Everything work well with Julia 1.11.7
Thanks,
fdekerm
Have you gone through the IJulia Troubleshooting instructions?
You will probably have to regenerate your kernel after updating to Julia 1.12
Edit: sorry, never mind! I missed the part where this is inside VS Code
Thanks, I will try!
It’s just that I never had to do this (manually) for previous Julia updates.
I don’t use VS Code, personally, so I’m not sure to what extent VS Code’s support for notebooks shares anything with normal Jupyter or the IJulia project. These troubleshooting guidelines may be completely irrelevant for you. This may very well be something where it’s up to the VS Code (or whatever plugin handles the notebook support) to add support for Julia 1.12.
Sorry for the noise (but someone probably will run into problems with the normal IJulia
in relation to the 1.12 release, hence me leaving the comment up)
Generally, when I update Julia, I have to run Pkg.build("IJulia")
as indicated in the docs. After that, I can run jupyter notebooks in VScode without any issues.
As Michael said IJulia
is different from the Jupyter notebook support in the VSCode extension. OP isn’t clear whether he’s using the built-in Jupyter support in the extension, or whether he’s using IJulia kernels in VSCode (which is also possible), but my best guess is that this is an issue with the VSCode extension Jupyter support that might not support 1.12 yet.
I’m not sure what you mean but VSCode does use the same Jupyter kernels (e.g. IJulia) as the normal Jupyter GUI… Edit: that’s only one kernel source, the Julia extension provides another one (see below).
I mean that the VSCode extension ships with Jupyter notebook support independent of IJulia.
The kernel selection looks like this:
where if I click on “Julia” I get:
which are all Julia versions managed by juliaup
and if I click on “Jupyter Kernel…” I get
which are the Julia kernels which I have installed via IJulia. So the native notebook support is something that Microsoft has developed for VSCode independent of IJulia (see here).
Thanks for the correction!