Created
April 21, 2016 14:53
-
-
Save hosamshahin/217cd1e758f8fc6145fa03eab7584a69 to your computer and use it in GitHub Desktop.
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
# preapre IPython Notebook | |
- Install anaconda2 | |
$ wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.5.0-Linux-x86_64.sh | |
$ bash Anaconda2-2.5.0-Linux-x86_64.sh | |
$ source ~/.bashrc | |
- Install anaconda3 | |
$ wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-4.0.0-Linux-x86_64.sh | |
$ bash Anaconda3-4.0.0-Linux-x86_64.sh | |
$ source ~/.bashrc | |
- Run IPython Notebook | |
$ ipython profile create nbserver | |
$ touch ~/.ipython/profile_nbserver/ipython_notebook_config.py | |
$ sudo nano ~/.ipython/profile_nbserver/ipython_notebook_config.py | |
add the following lines | |
c = get_config() | |
# Notebook config | |
#c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem' | |
c.NotebookApp.ip = '*' | |
c.NotebookApp.open_browser = False | |
#c.NotebookApp.password = u'sha1:bcd259ccf...[your hashed password here]' | |
# It is a good idea to put it on a known, fixed port | |
c.NotebookApp.port = 8888 | |
- open port 8888 | |
sudo ufw allow 8888 | |
- to run the server | |
$ ipython notebook --no-browser --profile=nbserver --ip 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment