Last active
July 4, 2023 00:13
-
-
Save p3jitnath/00f74f22b01ac5051f2992459933d58a to your computer and use it in GitHub Desktop.
Remote Access Jupyter Lab from DoC Computer Lab at Huxley (Imperial College)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 0: SSH into SSH Gateway | |
$ ssh [email protected] | |
====================================== | |
Step 1: SSH into Remote Server | |
$ ssh [email protected] | |
Step 2: Run Jupyter Lab in the remote environment | |
$ cd DIRECTORY | |
$ source virtual_env/bin/activate | |
$ jupyter lab --no-browser --port 8888 | |
Step 3: Bind the port to the ssh gateway on a different terminal | |
$ ssh -N -L localhost:10505:localhost:8888 [email protected] | |
====================================== | |
Step 4: No Bind the port to your own machine | |
$ ssh -N -L localhost:8888:localhost:10505 [email protected] | |
NOTE : PLEASE ENSURE YOU SAVE YOUR NOTEBOOK DURING WORK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment