Mac系统jupyter notebook报错解决方法

Abstract:Mac系统jupyter notebook报错解决方法,Error为execution error。

Error: execution error

安装jupyter notebook,执行jupyter notebook命令后,出现报错信息:

1
0:42:execution error: “"http://localhost:8891/tree"”不理解“open location”信息。 (-1708)

解决方法

1.终端进入jupyter的配置目录

1
2
3
4
5
Users/scarlett/.jupyter

# or

~/.jupyter

2.进入jupyter_notebook_config.py的vim编辑模式

1
vim jupyter_notebook_config.py

3.在jupyter_notebook_config.py文件中加入3行代码

1
2
3
c.NotebookApp.browser = u'Safari'
c.NotebookApp.token = ''
c.NotebookApp.password = ''

4.保存文件,重新执行

1
jupyter notebook
Thanks!