So it is technically possible to run a Julia Jupyter notebook in VSCode without getting IJulia involved. However, this tends to get very buggy and I have been told that I should still get IJulia involved.
What is actually the exact workflow for doing this? I.e. I think I am supposed to create a kernel using IJulia in my console, and then connect to that through VSCode when I star the notebook. I am unsure how to do this.
I have tried to add IJulia to the environment, then run it in the VSCode console using
using IJulia
However, even if I then also run
notebook()
no specific kernel seems to show up when I start my notebook.
Also, do I need to add IJulia to the environment of the notebook, or can I set up the kernel anywhere?
I tried just adding IJulia to my global environment, then running using IJulia, then closing Julia. However, when I then start VSCode and try to select a Kernel, nothing like that is available.
You need make a kernel first with IJulia.installkernel. Afterwards they are in the “jupyter kernel…” list. I recommend adding some threads to the kernel
julia> using IJulia
julia> IJulia.installkernel("Julia Test Kernel")
[ Info: Installing 'Julia Test Kernel 1.11.5' kernelspec in /home/loman/.local/share/jupyter/kernels/julia-test-kernel-1.11
"/home/loman/.local/share/jupyter/kernels/julia-test-kernel-1.11"
In my console, before starting VSCode and trying to select a kernel. Unfortunatley, the new one does not show up