gpt4 book ai didi

python - 找不到网络浏览器: could not locate runnable browser. Jupyter-notebook

转载 作者:行者123 更新时间:2023-12-03 15:40:56 25 4
gpt4 key购买 nike

Jupyter-notebook无法打开网络浏览器。之前它运行良好,然后在Windows 10提示进行更新后,它开始在Microsoft Edge中打开。当我尝试将其更改为默认浏览器(即chrome)时,它根本无法打开。

我遵循how to open Jupyter notebook in chrome on windows尝试将其更改回chrome。

当我尝试运行时

jupyter notebook

在cmd中,我得到的只是
[I 21:39:08.015 NotebookApp] JupyterLab extension loaded from C:\Users\roy\Anaconda3\lib\site-packages\jupyterlab
[I 21:39:08.015 NotebookApp] JupyterLab application directory is C:\Users\roy\Anaconda3\share\jupyter\lab
[I 21:39:08.015 NotebookApp] Serving notebooks from local directory: C:\Users\roy
[I 21:39:08.015 NotebookApp] The Jupyter Notebook is running at:
[I 21:39:08.015 NotebookApp] http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
[I 21:39:08.031 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 21:39:08.109 NotebookApp] No web browser found: could not locate runnable browser.

To access the notebook, open this file in a browser:
file:///C:/Users/roy/AppData/Roaming/jupyter/runtime/nbserver-1516-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8

但是,当我将URL复制并粘贴到Web浏览器中时,它就可以正常工作。

最佳答案

解决了。

我去了
我的用户目录中的.jupyter文件夹>
打开jupyter_notebook_config.py文件>
然后从
c.NotebookApp.browser ='C:\Program Files(x86)\Google\Chrome\Application\chrome.exe'

c.NotebookApp.browser = u'C:/程序文件(x86)/Google/Chrome/Application/chrome.exe%s'

现在它运作良好。

关于python - 找不到网络浏览器: could not locate runnable browser. Jupyter-notebook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55554351/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com