Use Jupyter Lab on a remote server
# Credit: http://benjlindsay.com/blog/running-jupyter-lab-remotely/
# Log in to remote server
ssh username@hostname
# Now on remote server via ssh
jupyter lab --no-browser --port=8888
# On local computer:
ssh -Y -N -L localhost:888X:localhost:8888 username@hostname
# Notes!
# 1. Change username@hostname appropriately
# 2. The remote localhost is 8888, make sure these match like the example above
# 3. The "local" localhost is 888x (an be any number between 8880 - 8890)
Desc: This is my current workflow for setting up my Python programming interface with Jupyter lab on a remote server. I will be setting up Jupyter lab on the remote server to be constantly running. After this has been completed once, only step 5-6 are needed to connect my local computer to the running Jupyter lab.
Benefits:
Credit: http://benjlindsay.com/blog/running-jupyter-lab-remotely/
# connect to server
ssh username@hostname
# go to home directory repos
# example:
cd /bioinf/home/mschecht/post_msc
# Now on remote server via ssh
jupyter lab --no-browser --port=8888
# On local computer:
ssh -Y -N -L localhost:888X:localhost:8888 username@hostname