User Tools

Site Tools


Jupyter notebook

There is also a jupyterhub available, see Jupyterhub

To use jupyter notebook on VSC-3 nodes log in from a login node to your node, e.g. by doing:

salloc -N 1 [-L <licence> -J <jobname> ..]
srun hostname
ssh nXX-XXX
module load intelpython/35/2017

First time setup (to allow access from other hosts):

jupyter notebook --generate-config
sed -i "s/#c.NotebookApp.allow_origin/c.NotebookApp.allow_origin/;s/#c.NotebookApp.ip.*/c.NotebookApp.ip = ''/" .jupyter/

To start the jupyter notebook:

nXX-XXX> jupyter notebook --port=12345 --no-browser
    Copy/paste this URL into your browser when you connect for the first time,
  to login with a token:

To connect to the given port (in this example 12345), it has to be forwarded to your local browser (on the local command line):

my_local_machine> ssh -L 12345:nXX-XXX:12345 <user>

Do not close this ssh session!

Now connect with your local browser to the URL given by jupyter (including the first-time-token):


When your work is finished on the allocated node, release the node allocation with

scancel $JOBID

or (if you do not remember the job id and had only one job running), alternatively with

scancel -u $USER
doku/jupyter.txt · Last modified: 2021/05/13 08:57 by goldenberg