Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook error Traceback (most recent call last): [duplicate]

I am new to programming but want to use the Jupyter Notebook tool. When I try to open it in Terminal (I use ~ usr$ jupyter notebook command), an error shows up with the following message (taken from Terminal):

Traceback (most recent call last):
  File "/Users/usr/anaconda3/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/Users/usr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 45, in <module>
    ioloop.install()
  File "/Users/usr/anaconda3/lib/python3.6/site-packages/zmq/eventloop/ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'

Does anyone know how to solve this? I am just looking for the localhost to open Jupyter Notebook in my Chrome browser.

Thanks in advance!

like image 734
martins Avatar asked Oct 16 '25 13:10

martins


1 Answers

Thank you all,

On top of what @Jim Fasarakis Hilliard or @nitred suggested, I finally made it work by updating all packages (instead of downgrading tornado). As I use conda to download all packages, just typed conda update --all and Jupyter Notebook worked. One of the updates was precisely the "tornado" package, so probably this did the trick.

Thanks again!

like image 82
martins Avatar answered Oct 18 '25 21:10

martins



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!