Setting up Julia Kernel in Jupyter in VS Code

How do I set up a Julia kernal for Jupyter in VS Code? I’m should have the latest version of Julia set up in Ubuntu 20.10.

I also have inkscape set up, and will need to get things to work, so that I can export PDF.

I am just using the jupyter/datascience-notebook Docker images

  • conda + julia kernel integrations included !!!
  • and I can easily extend the images … adding other tools … ( like inkscape … )

(NOT tested , but according the docs it should work)
just using the jupyter/datascience-notebook Docker images as a remote jupyter server ( running on via local Docker )
VS Code: "Connect to a remote Jupyter server"
“You can offload intensive computation in a Jupyter notebook to other computers by connecting to a remote Jupyter server. Once connected, code cells run on the remote server rather than the local computer.”

Hacker way : if the local install is important for you … Then you can check the Dockerfiles … and you can find some hints - for the Conda + Julia kernel setup

if you can’t extend the jupyter/datascience-notebook docker images with “inkscape” … just ping me …


When I select add a kernel, I get

Command 'Jupyter: Select a Kernel' resulted in an error (Jupyter cannot be started. Error attempting to locate jupyter: Data Science libraries notebook and jupyter are not installed in interpreter Python 3.8.5 64-bit.)

so how do I add this library?

I think I need a uri, but I’m not sure how to set one up.

Usually a ]add IJulia and ]build IJulia is enough to have a working Jupyter kernel, at least this has worked for me in the past years on all of the machines I was working on :wink:


please write … your steps …
because I can’t replicate … I can’t see what is your problem.

The jupyter/datascience-notebook is working ?

in the docker logs you can see the url + token … ( you can adapt the ip/port outside of docker )

Executing the command: jupyter notebook
[I 09:27:29.253 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
[I 09:27:30.354 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 09:27:30.354 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 09:27:30.359 NotebookApp] Serving notebooks from local directory: /home/jovyan
[I 09:27:30.359 NotebookApp] Jupyter Notebook 6.1.6 is running at:
[I 09:27:30.359 NotebookApp] http://2b2564ebb23a:8888/?token=c6af62537fea4500ab55b19eb4d58ab7e22b5d91cdf1d66a
[I 09:27:30.359 NotebookApp]  or
[I 09:27:30.359 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:27:30.365 NotebookApp] 
    To access the notebook, open this file in a browser:
    Or copy and paste one of these URLs:

yes, it is working for me ( ubuntu:20.04 )

VS Example ( for selecting Julia Kernel )

my screenshot: