Remote Jupyter notebook

notebook configuration file

1
jupyter notebook --generate-config

Password setup

1
jupyter notebook password

Edit configuration file

1
2
3
4
5
6
7
# Set options for certfile, ip, password, and toggle off
# browser auto-opening
# Set ip to '*' to bind on all interfaces (ips) for the public server
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
# It is a good idea to set a known, fixed port for server access
c.NotebookApp.port = 8888

Runs in the background

1
nohup jupyter notebook &

Local port forwarding

1
ssh -N -f -L localhost:{local port}:localhost:{remote port} -p {ssh port} {user}@{remote ip}
Donate article here
Share the post