So you want to run the IPython Notebook… and you’re using Anaconda 2.1.0 on some version of Linux.
You are already able to run ipython successfully…
$ ipython IPython 2.2.0 -- An enhanced Interactive Python [1]: exit()
But from the command line, when you try to run the IPython Notebook:
$ ipython notebook
You get a bunch of errors… something about sockets. The last error sticks out…
... return getattr(self._sock,name)(*args error: [Errno 99] Cannot assign requested address
A bit of googling shows you some relevant links:
We summarize the two steps needed to get the Anaconda IPython Notebook working here.
1) From the command line run:
$ ipython profile create
This should create a bunch of profile info:
[ProfileCreate] Generating default config file: u'/your/path/.ipython/profile_default/ipython_config.py' [ProfileCreate] Generating default config file: u'/your/path/.ipython/profile_default/ipython_qtconsole_config.py' [ProfileCreate] Generating default config file: u'/your/path/.ipython/profile_default/ipython_notebook_config.py' [ProfileCreate] Generating default config file: u'/your/path/.ipython/profile_default/ipython_nbconvert_config.py'
Note the location of the line with the ipython_noteboook_config.py
(third line).
/your/path/.ipython/profile_default/
2) Navigate to and open ipython_noteboook_config.py
Within this file you should see these lines:
# The IP address the notebook server will listen on. # c.NotebookApp.ip = 'localhost'
Simply add this line:
# The IP address the notebook server will listen on. # c.NotebookApp.ip = 'localhost' c.NotebookApp.ip = '127.0.0.1'
and save the file.
Now run:
$ ipython notebook
and it should work!