Quick Instructions
These instructions are not exhaustive, check out the links at the bottom for a more detailed treatment.
I'm assuming that you have the conda environment setup and activated on a linux ec2-instance on aws and you're currently on the shell. Run the following:
conda install jupyter jupyter notebook --generate-config
Then you need to generate the password. Open ipython and type the following:
from notebook.auth import passwd passwd() Enter password: Verify password:
It then outputs the encryped text. Copy this. Edit ~/.jupyter/jupyter_notebook_config.py:
c = get_config() c.NotebookApp.ip='*' c.NotebookApp.password = u'sha1:asdfasdf---your copy-paste line here' c.NotebookApp.open_browser = False c.NotebookApp.port =9999 # or other port number```
And thats it to expose it to the world. You should extend this so that it includes encryption (ie https) but this is a starter for 10.
To actually launch the notebooks then, run:
jupyter notebook --notebook-dir <notebook_loc> --no-browser
But, before you do that, make sure you expose the notebook port in the security group. Add a custom inbound tcp port for 9999 (or whatever you've chosen above).
Further details at: