Created
September 16, 2019 08:39
-
-
Save dsalaj/6a735bc127a461c1e64e68d84d531f4b to your computer and use it in GitHub Desktop.
Setup python jupyter notebooks for editing over SSH
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
# Steps for setting up python jupyter notebook for editing over SSH | |
# this is not a runnable script as different commands need to be executed on different machines | |
# ON REMOTE MACHINE | |
ssh username@remotepc123 | |
# make sure the jupyter is installed | |
pip install jupyter | |
# start jupyter on specified port and no-browser mode | |
jupyter notebook --no-browser --port=8080 | |
# copy the url with token that looks something like this: | |
# http://localhost:8080/?token=f3b56d11a8477c5ad544e0e5ed451c1eaaf153b39943eb60 | |
# done | |
# ON LOCAL MACHINE | |
# set up a SSH tunnel | |
ssh -N -L 8080:localhost:8080 username@remotepc123 | |
# open the copied url with toke in your local browser | |
# done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment