无法启动ipython笔记本

时间:2014-07-23 12:33:07

标签: python-2.7 macports ipython-notebook

我已经在我的mac osx10.9.4上安装了pyport和ipython以及macport。

我可以打开ipython,它运行正常但我无法打开ipython笔记本。

输入

ipython notebook

我明白了。

  

2014-07-23 12:22:11.626 [NotebookApp]使用现有的配置文件目录:   u'/ Users / zhiyiwu / .ipython / profile_default'2014-07-23 12:22:11.630   [NotebookApp]使用CDN的MathJax:   追踪({3}}追溯(大多数   最近的呼叫最后):文件“/ opt / local / bin / ipython”,第5行,在          start_ipython()文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/init.py”,   第120行,在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”,   第563行,在launch_instance中       app.initialize(argv)文件“”,第2行,初始化文件   “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”   第92行,在catch_config_error中       return方法(app,* args,** kwargs)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/terminal/ipapp.py”,   第321行,初始化       super(TerminalIPythonApp,self).initialize(argv)文件“”,第2行,初始化文件   “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”   第92行,在catch_config_error中       return方法(app,* args,** kwargs)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/application.py”,   第381行,初始化       self.parse_command_line(argv)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/terminal/ipapp.py”,   第316行,在parse_command_line中       在parse_command_line文件中返回super(TerminalIPythonApp,self).parse_command_line(argv)文件“”,第2行   “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”   第92行,在catch_config_error中       return方法(app,* args,** kwargs)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”,   第475行,在parse_command_line中       return self.initialize_subcommand(subc,subargv)文件“”,第2行,在initialize_subcommand文件中   “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”   第92行,在catch_config_error中       return方法(app,* args,** kwargs)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”,   第413行,在initialize_subcommand中       self.subapp.initialize(argv)文件“”,第2行,初始化文件   “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/config/application.py”   第92行,在catch_config_error中       return方法(app,* args,** kwargs)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/notebookapp.py”,   第745行,初始化       self.init_webapp()文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/notebookapp.py”,   第632行,在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/tcpserver.py”,   第125行,在听       sockets = bind_sockets(port,address = address)文件“/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tornado/netutil.py”,   第98行,在bind_sockets中       0,flags)):gaierror:[Errno 8] nodename也没提供servname,或者不知道

     

如果您怀疑这是一个IPython错误,请在以下位置报告:       http://cdn.mathjax.org/mathjax/latest/MathJax.js或发送电子邮件至邮件列表ipython-dev@scipy.org

     

您现在可以使用“%tb”打印更详细的追溯,或使用   “%debug”以交互方式调试它。

     

可以启用针对错误报告目的的额外详细回溯   通过:       c.Application.verbose_crash =真

是否有我的笔记本电脑启动?

2 个答案:

答案 0 :(得分:2)

这似乎与ipython ip socket问题有关。经过验证的解决方法:

ipython notebook --ip=127.0.0.1

显示在https://github.com/ipython/ipython/issues/6191#issuecomment-49903748

答案 1 :(得分:0)

我接受另一个python的分发,它的Anaconda。你可以在这里找到:https://store.continuum.io/cshop/anaconda/ 它包含一个带有Ipython终端的IDE,它非常有用,您可以轻松访问笔记本。