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)
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.
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).
You start IPython by typing “ipython” in your terminal. $ ipython Python 2.7.
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With