Try โ€‚โ€‰HackMD

Running interactive Jupyter notebook on Rackham
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

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
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’
  4. Create "New Jupyter notebook". Note that the the information bar will indicate that you are using a remote server
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’
  5. Test it to confirm that it is running on the interactive compute node.
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’

Contacts:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

tags: UPPMAX, SNIC, jupyter notebook, RT225511, VSCode