Cannot start ipython notebook

I installed py27 and ipython and a macport laptop on my mac osx10.9.4.

I can open ipython and it works fine, but I can not open ipython laptop.

After entering the type

ipython notebook 

I got it.

2014-07-23 12: 22: 11.626 [NotebookApp] Using an existing profile: u '/ Users/zhiyiwu/.ipython/profile_default' 2014-07-23 12: 22: 11.630 [NotebookApp] Using MathJax from CDN: http: / /cdn.mathjax.org/mathjax/latest/MathJax.js Traceback (most recent last call): File "/ opt / local / bin / ipython", line 5, in start_ipython () File "/ opt / local / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / site-packages / IPython / init .py ", line 120, in start_ipython return launch_new_instance (argv = argv, ** kwargs) File" / opt / local / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / site-packages / IPython / config / application.py ", line 563, in launch_instance app.initialize (argv) File" ", line 2, in initialization file "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/li b / python2.7 / site-packages / IPython / config / application.py ", line 92, in the catch_config_error return method (application, * args, ** kwargs) File" /opt/local/Library/Frameworks/Python.framework /Versions/2.7/lib/python2.7/site-packages/IPython/terminal/ipapp.py ", line 321, when initializing super (TerminalIPythonApp, self) .initialize (argv) File" ", line 2, in the initialization file "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py", line 92, in the catch_config_error return method (application, * args, ** kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/application.py", line 381, when initializing self.parse_command_line (argv) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/py thon2.7 / site-packages / IPython / terminal / ipapp.py ", line 316, in parse_command_line return super (TerminalIPythonApp, self) .parse_command_line (argv) File" ", line 2, in the parse_command_line file" / opt / local / Library / Frameworks / Python.framework / Versions / 2.7 / lib / python2.7 / site-packages / IPython / config / application.py ", line 92, in the catch_config_error return method (application, * args, ** kwargs) File" /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py ", line 475, in parse_command_line return self.initialize_subcommand (subc, subargv) File "", line 2, in initialize_subcommand file "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py", line 92, in catch_config_error return method (application, * args, ** kwargs) File "/ opt / local /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py ", line 413, in initialize_subcommand self.subapp.initialize (argv) File" ", line 2, in the initialization file "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py", line 92, in the catch_config_error return method ( app, * args, ** kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 745, upon initialization self.init_webapp () File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 632, in init_webapp self.http_server.listen (port, self.ip) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tornado/tcpserve r.py ", line 125, listen to sockets = bind_sockets (port, address = address) File" /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tornado/ netutil.py ", line 98, at bind_sockets 0, flags)): gaierror: [Errno 8] nodename or servname provided or unknown

If you suspect this is an IPython error, report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@scipy.org

Now you can print a more detailed trace using "% tb" or use "% debug" for interactive debugging.

You can enable additional verbose traces to report errors using: c.Application.verbose_crash = True

Anyway, to get started with my laptop?

0
source share
2 answers

This seems like problems with ipython ip socket. Proven workaround:

 ipython notebook --ip=127.0.0.1 

represented at https://github.com/ipython/ipython/issues/6191#issuecomment-49903748 .

+2
source

I take another python distribution, this is Anaconda. You can find it here: https://store.continuum.io/cshop/anaconda/ It contains an IDE with an Ipython terminal, it is very useful, and you can easily access your laptop.

0
source

Source: https://habr.com/ru/post/1232753/


All Articles