Skip to content

Instantly share code, notes, and snippets.

@msis
Last active February 4, 2018 22:56
Show Gist options
  • Save msis/2159d9e03a14faf4afba77095897a609 to your computer and use it in GitHub Desktop.
Save msis/2159d9e03a14faf4afba77095897a609 to your computer and use it in GitHub Desktop.
[jupyter notebook on AWS] How to launch jupyter notebook from inside AWS Deep Learning AMI? #aws #jupyter #notebook #python #ssh
  1. ssh to the remote instance (based on Ubuntu Deeplearning AMI) with port* redirection:
ssh -L 8888:127.0.0.1:8888 ubuntu@IP
  1. activate the environment (here we're using tensorflow_p36):
source activate tensorflow_p36
  1. launch jupyter:
jupyter notebook --no-browser
  1. copy the link with the token
  2. on your local machine, go to the link copied above.

*: this will redirect all the traffic on port 8888 to this instace. It might be in conflict with your local jupyter server for example. A solution is to redirect towards another port and use the same port when launching jupyter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment