0%

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
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8888
c.NotebookApp.open_browser = False
c.NotebookApp.allow_remote_access = True
c.NotebookApp.password = "<hashed_password>"
c.NotebookApp.notebook_dir = "<root_dir>"

Runs in the background

1
2
<!-- nohup jupyter notebook & -->
nohup jupyter notebook --ip=0.0.0.0 --no-browser --allow-root &

Local port forwarding

1
ssh -N -f -L localhost:{local port}:localhost:{remote port} -p {ssh port} {user}@{remote ip}