Ubuntu Linux系统中出现jupyter notebook不能自动打开浏览器

说实话,以前是没有这个问题的,不知道是什么因素影响的,所以我记录下当前环境版本:

组件 版本
Python 3.6.10
Ubuntu 20.04
Shell Zshell

subl /home/appleyuchi/.jupyter/jupyter_notebook_config.py

import webbrowser
webbrowser.register("Chrome",None,webbrowser.GenericBrowser("/usr/bin/google-chrome-stable"))
c.NotebookApp.browser = 'Chrome'

保存后关闭

重新输入

jupyter notebook启动即可打开浏览器了。

猜你喜欢

转载自blog.csdn.net/appleyuchi/article/details/107645440