Ipython notebook 不会在命令行上启动 [英] Ipython notebook will not start on command line

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

问题描述

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

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'(一定要把#注释符号去掉)

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

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