我不能突然使用jupyter笔记本

时间:2017-06-23 13:48:22

标签: jupyter-notebook

我不能突然使用jupyter笔记本。在我开始使用笔记本之前,我刚刚更新了我的mac系统。以下是错误。

[W 21:44:52.515 NotebookApp] server_extensions is deprecated, use nbserver_extensions
[I 21:44:52.964 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.2.5
[I 21:44:52.968 NotebookApp] Serving notebooks from local directory: /Users/william/Folders/jupyter
[I 21:44:52.968 NotebookApp] 0 active kernels
[I 21:44:52.968 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=159e4e1df709b7a94adb260448f671b9f9689d7b9b388fc5
[I 21:44:52.968 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:44:52.973 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=159e4e1df709b7a94adb260448f671b9f9689d7b9b388fc5
0:97: execution error: “"http://localhost:8888/tree?token=f0ef33a1f3bc91981dfe0dca2c1479a3cd718e775ea33c23"” dosen't understand information “open location”。 (-1708)

1 个答案:

答案 0 :(得分:0)

我认为问题是由于MAC升级到10.12.5。要解决此问题,请按照以下步骤进行操作

  • 步骤1:打开终端并转到~/.jupyter文件夹
  • 步骤2:创建配置文件jupyter_notebook_config.py并在其中写入以下命令并将文件保存在同一位置:   c.NotebookApp.browser = u'safari'
  • 第3步:出来并在终端类型jupyter notebook中,现在应该可以使用了。