Running interactive Jupyter notebook on Rackham

1. Start an interactive session from the login node

# For Rackham
$ interactive -A snic-project  -t 4:00:00

# For Snowy
$ interactive -M snowy -A snic-project  -t 4:00:00

2. Start jupyter notebook from the interactive session (when it gets allocated)

$ module load python/3.9.5
$ jupyter notebook --ip 0.0.0.0 --no-browser

3. Connect to the running notebook

Keep this session open and running. Note the node on which you are got the interactive job i.e. something like "r141".

Tutorial from other HPC computer centers

Running Jupyter on Slurm

Connect to this remote Jupyter notebook server from VSCode

  1. Follow the instructions above to start Jupyter server on an interactive node and forward the port locally to your computer.
  2. Follow this guide from VSCode https://code.visualstudio.com/docs/datascience/jupyter-notebooks#_connect-to-a-remote-jupyter-server
  3. When asked for the URI provide the one you have assembled for your local browser
  4. Create "New Jupyter notebook". Note that the the information bar will indicate that you are using a remote server
  5. Test it to confirm that it is running on the interactive compute node.

Contacts:


tags: UPPMAX, SNIC, jupyter notebook, RT225511, VSCode
Select a repo