【问题标题】:No web browser found: could not locate runnable browser. Jupyter-notebook未找到 Web 浏览器:找不到可运行的浏览器。 Jupyter-笔记本
【发布时间】:2019-04-06 23:29:02
【问题描述】:

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

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

【问题讨论】:

    标签: python ide jupyter-notebook jupyter


    【解决方案1】:

    解决了。

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

    现在效果很好。

    【讨论】:

    • 太棒了!只有在这里我才找到完整的解决方案
    【解决方案2】:

    这是一个隧道问题。 试试这个:

    ssh username@xx.xx.xx.xx -NL 1234:localhost:1234
    

    更多详情,请参考以下链接: https://medium.com/@apbetahouse45/how-to-run-jupyter-notebooks-on-remote-server-part-1-ssh-a2be0232c533

    【讨论】:

      【解决方案3】:

      当 jupyter 安装在我的 python 2.7 目录下时,这解决了我的类似问题,但在我的 python 3.7 目录中安装的 jupyter 下不是必需的。使用 3.7 目录的读者可能会遇到不同的问题。

      【讨论】:

        猜你喜欢
        • 2020-03-21
        • 1970-01-01
        • 2018-06-11
        • 2019-08-10
        • 2021-04-14
        • 1970-01-01
        • 2015-12-08
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多