更新jupyter后打开jupyter不自动打开浏览器

[W 2021-11-13 21:08:06.811 LabApp] ‘notebook_dir’ has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-11-13 21:08:06.811 LabApp] ‘notebook_dir’ has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2021-11-13 21:08:06.819 LabApp] JupyterLab extension loaded from D:################
[I 2021-11-13 21:08:06.820 LabApp] JupyterLab application directory is ######
[I 21:08:06.825 NotebookApp] Serving notebooks from local directory: ##############
[I 21:08:06.826 NotebookApp] Jupyter Notebook 6.4.5 is running at:
[I 21:08:06.826 NotebookApp] http://localhost:8888/?token=a711c04a13b19a0c4cd422775c57ed360c8a5b434e3c3ee3
[I 21:08:06.826 NotebookApp] or http://127.0.0.1:8888/?token=a711c04a13b19a0c4cd422775c57ed360c8a5b434e3c3ee3
[I 21:08:06.826 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:08:06.932 NotebookApp]

To access the notebook, open this file in a browser:
file:#############.html
Or copy and paste one of these URLs:
##############

生成jupyter_notebook_config.py文件

流程:打开调出命令提示符cmd → 输入“jupyter notebook --generate-config”(注意没有引号)生成文件,打开C盘下jupyter文件夹查看是否生成成功,

image-20211113211042232

右键记事本打开jupyter_notebook_config

在最后一行添加一句

c.NotebookApp.use_redirect_file = False

便正常跳转了
参考链接:
https://stackoverflow.com/questions/55756151/how-to-set-jupyter-notebook-to-open-on-browser-automatically
参考链接:https://blog.csdn.net/weixin_42814873/article/details/82842925

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐