找不到Web浏览器:找不到可运行的浏览器.朱皮特笔记本 [英] No web browser found: could not locate runnable browser. Jupyter-notebook

查看:1112
本文介绍了找不到Web浏览器:找不到可运行的浏览器.朱皮特笔记本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Jupyter-notebook doesn't open a web browser. It worked just fine before, then after windows 10 prompted for an update it began to open in Microsoft edge. When I tried to change it to the default browser which is chrome now it won't open at all.

我遵循了如何在Windows上以chrome打开Jupyter笔记本的方法尝试将其更改回Chrome.

I followed how to open Jupyter notebook in chrome on windows to try and change it back to 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

但是,当我将网址复制并粘贴到网络浏览器中时,它就可以正常工作.

However when I copy and paste the url in a web browser it just works fine.

推荐答案

已解决.

我去了 我的用户目录中的.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'

I went to the .jupyter folder in my Users directory > opened the jupyter_notebook_config.py file > then edited this line from c.NotebookApp.browser = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe ' to c.NotebookApp.browser = u'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'

现在效果很好.

这篇关于找不到Web浏览器:找不到可运行的浏览器.朱皮特笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆