Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting the ipython notebook

Tags:

python

In an ubuntu terminal window when the notebook is starting this error is raised. Could anybody explain this error

KeyError: 3
ERROR:root:Exception in I/O handler for fd 3
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 330, in start
    self._handlers[fd](fd, events)
like image 556
user3631634 Avatar asked Jul 17 '14 05:07

user3631634


People also ask

How do I start an IPython notebook?

Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.

How do I run a Jupyter Notebook in IPython?

To launch a Jupyter notebook, open your terminal and navigate to the directory where you would like to save your notebook. Then type the command jupyter notebook and the program will instantiate a local server at localhost:8888 (or another specified port).

How do I launch IPython?

You start IPython by typing “ipython” in your terminal. $ ipython Python 2.7.

How do I run a Python notebook?

Windows File Explorer + Command Prompt Once you've entered your specific folder with Windows Explorer, you can simply press ALT + D, type in cmd and press Enter. You can then type jupyter notebook to launch Jupyter Notebook within that specific folder.


1 Answers

I had to upgrade pyzmq to get it working:

sudo pip install pyzmq --upgrade

If the problem still persists try upgrading the rest of the libraries which are:

sudo pip install jinja2
sudo pip install tornado

If you don't wanna be messing around with these libraries you could run a virtual environment and install everything there. Here is the documentation: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Hope it helps, cheers!

like image 161
comrad Avatar answered Oct 03 '22 20:10

comrad