Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.18 KB

step05-configure-jupiter-notebook.md

File metadata and controls

53 lines (39 loc) · 1.18 KB

Jupiter Notebook configuration [back]

(1) Create default jupiter config:

$ jupyter notebook --generate-config

(2) Generate password for jupiter notebook remote connect:

$ python -c "from notebook.auth import passwd ; print passwd()"
Enter password: 
Verify password: 
sha1:d789606b9c22:65fcab009f7253eb73e4b4e99996d8df614eae32

(3) Append password to jupiter config:

$ echo "
c.NotebookApp.password = u'sha1:d789606b9c22:65fcab009f7253eb73e4b4e99996d8df614eae32'
" >> ~/.jupyter/jupyter_notebook_config.py

(4) Append IP and PORT configuration:

echo "
c.NotebookApp.ip = '$(ifconfig eth0 | grep 'inet addr' | cut -d\: -f2 | cut -d\  -f1)'
c.NotebookApp.port = 9999
" >> ~/.jupyter/jupyter_notebook_config.py

(5) Check jupiter installation

(5.1) go to work directory and run jupiter notebook:

$ cd ~/deep-learning
$ jupyter notebook

(5.2) open url in browser [http://ec2-54-86-145-119.compute-1.amazonaws.com:9999] create simple notebook and run code. See screenshoots Jupyter notebook on Amazon 1

and

Jupyter notebook on Amazon 2