当我尝试直接启动(任何)jupyter笔记本时,出现以下错误:
Traceback (most recent call last):
File "/usr/bin/jupyter-notebook", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/lib/python2.7/site- packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/lib/python2.7/site-packages/notebook/notebookapp.py", line 1784, in start
self.launch_browser()
File "/usr/lib/python2.7/site-packages/notebook/notebookapp.py", line 1742, in launch_browser
with open(fd, 'w', encoding='utf-8') as fh:
TypeError: coercing to Unicode: need string or buffer, int found
但是,如果我只在某个目录下启动jupyter,则可以通过浏览器打开笔记本。
jupyter版本:4.4.0
python版本:2.7.15
操作系统:Fedora 29