# 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)
# Python programming setup
- 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:
- Now I get to develope locally using the Jupyter Lab interface but run
calculations on remotely on the servers :)
- Credit: http://benjlindsay.com/blog/running-jupyter-lab-remotely/
## Steps:
1. Start computer
2. Turn on VPN for MPI servers
3. open two terminals (A, B)
4. Terminal A:
```
# 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
```
5. Terminal B:
```
# On local computer:
ssh -Y -N -L localhost:888X:localhost:8888 username@hostname
```
6. Copy link in stdout of step 4 and paste into web browser