jupyter - konradmayer/knowledge-base GitHub Wiki
remote jupyter
https://benjlindsay.com/posts/running-jupyter-lab-remotely#commands
without port forwarding by the ide (e.g. vscode), two terminal sessions are needed. In the first ssh into the remote machine and start jupyter lab:
ssh username@hostname
jupyter lab --no-browser --port=5678
the second is used for port forwarding
ssh -CNL localhost:5678:localhost:5678 username@hostname
now open localhost:5678 in a local web browser
list active servers
Eg. good to find port number again after reconnecting to a server where jupyter was running using nohup
or disowned (strg+z; bg; disown -h
)
jupyter lab list
#or
jupyter notebook list