can't start jupyter notebook: "localhost refused to connect"

4,474 views
Skip to first unread message

Jonathan Slavin

unread,
Mar 13, 2017, 1:07:08 PM3/13/17
to Project Jupyter
Hi,

It's been a little while since I last used a jupyter notebook, but when I last did it worked fine.  However now when I try to start one I get:
> jupyter notebook
[I 12:47:24.487 NotebookApp] Serving notebooks from local directory: /export/slavin/FLASH/mmsnr
[I 12:47:24.488 NotebookApp] 0 active kernels 
[I 12:47:24.488 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 12:47:24.488 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
  File "/export/slavin/python/anaconda/bin/jupyter-notebook", line 6, in <module>
    sys.exit(main())
  File "/export/slavin/python/anaconda/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/export/slavin/python/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 589, in launch_instance
    app.start()
  File "/export/slavin/python/anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 1089, in start
    self.io_loop = ioloop.IOLoop.current()
AttributeError: type object 'IOLoop' has no attribute 'current'

and in my chrome browser I get a page that says:
"This site can’t be reached

localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED"

I figure that the python error is caused by the connection being refused.

I've checked my proxy settings and those are fine.  I asked and my sysadmin turned off my firewall.  Same result.
I'm running on CentOS 6.8 and using an anaconda install of python 2.7.11 and jupyter 4.0.6.  My chrome version is 57.0.2987.98.  Thanks in advance for any help you can offer.

Regards,
Jon

Slavin, Jonathan

unread,
Mar 13, 2017, 2:58:28 PM3/13/17
to jup...@googlegroups.com
It turns out that my jupyter version was a bit old.  I updated jupyter_core, jupyter_client, jupyter_console and pyzmq and after that jupyter notebook works again.

Jon

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/iSv5V-f1UHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/7d019aaa-e60b-4988-87ed-1de68fd517d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
jsl...@cfa.harvard.edu       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________

Reply all
Reply to author
Forward
0 new messages