IPython Notebook将无法在命令行上启动 [英] Ipython notebook will not start on command line

查看:283
本文介绍了IPython Notebook将无法在命令行上启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用ipython notebook在终端中打开ipython,但无法打开ipython笔记本.它给出了以下错误:

I tried to open ipython in terminal with ipython notebook and it will not open ipython notebook. It gives the following error:

| ~/documents/ud120-projects/datasets_questions @ HJ (JiaHui)
| => ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and 
will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in 
the future
[I 14:46:50.516 NotebookApp] Serving notebooks from local directory: 
/Users/JiaHui/Documents/ud120-projects/datasets_questions
[I 14:46:50.517 NotebookApp] 0 active kernels 
[I 14:46:50.517 NotebookApp] The Jupyter Notebook is running at: 
http://localhost:8888/?token=ef13f681f4d61223064e41a5a9e369813c155d27b0103471
[I 14:46:50.517 NotebookApp] Use Control-C to stop this server and shut down 
all kernels (twice to skip confirmation).
[C 14:46:51.567 NotebookApp] 

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?
token=ef13f681f4d61223064e41a5a9e369813c155d27b0103471
0:97: execution error: "http://localhost:8888/tree?
token=145eccd35722c35c6525d8a4d376f27aa60358dc7d00de4c" doesn’t understand the 
"open location" message. (-1708)

我已经升级了conda jupyter,但仍然无法正常工作.我该如何解决?

I have upgraded conda jupyter but it still won't work. How can I fix this?

推荐答案

此问题归因于最新的Mac OSX 10.12.5升级.请按照以下步骤进行修复:

This issue due to the newest Mac OSX 10.12.5 upgrade. Please follow these steps to fix it:

  1. 如果没有,请生成jupyter配置:
    jupyter笔记本--generate-config
  2. 使用vim打开该配置文件,并在以下位置添加Google chrome值:
    c.NotebookApp.browser = u'chrome'(确保取出#注释符号)
  1. Generate jupyter config if you don't have it:
    jupyter notebook --generate-config
  2. Use vim to open that config file and add Google chrome value in:
    c.NotebookApp.browser = u'chrome' (Make sure to take out the # comment sign)

这篇关于IPython Notebook将无法在命令行上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆