Xintong Li

Tools

jupyter

Use jupyter notebook on remote server

Remote

pip install notebook
jupyter notebook --no-browser --port=8889

Local

ssh -N -L 8889:localhost:8889 username@serverIP # -f go to background

Use jupyter notebook on slurm interactive node

Create the configure file of jupyter notebook.

jupyter notebook --generate-config

Add the following configurations.

c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8889

On remote server

jupyter notebook

On local machine

ssh -N -L localhost:8889:<hostname>:8889 <username>@<hostaddress>