hosamshahin
4/21/2016 - 2:53 PM

IPython: install

# 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