Skip to content

Instantly share code, notes, and snippets.

@tommydangerous
Last active January 17, 2018 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommydangerous/a8e2db140a15a8d3bb71027be8360a7e to your computer and use it in GitHub Desktop.
Save tommydangerous/a8e2db140a15a8d3bb71027be8360a7e to your computer and use it in GitHub Desktop.
Run Jupyter Notebook and access locally
# SSH into instance
$ jupyter notebook --no-browser
# Open local terminal and create tunnel
$ ssh -i ~/Documents/keys/aws/airbnb-macbook.pem -L 8157:127.0.0.1:8888 \
ubuntu@ec2-13-57-14-25.us-west-1.compute.amazonaws.com
# Kill any running notebooks
$ jupyter notebook list
$ netstat -tulpn
$ kill 1337
# Upload folder
$ scp -r . jpr:.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment