【发布时间】:2019-06-02 11:48:17
【问题描述】:
我在启动 Jupyter lab 或 Jupyter notebook 时收到以下日志-
[W 17:03:08.963 NotebookApp] No web browser found: could not locate runnable browser.
并且 Jupyter 不会启动浏览器(或浏览器中的选项卡)。
(我使用的是 Linux - Manjaro i3 社区版)
我已将 Jupyter 配置为使用 google-chrome-stable by
jupyter notebook --generate-config
并在~/.jupyter/jupyter_notebook_config.py中设置以下行
c.NotebookApp.browser = '/usr/bin/google-chrome-stable'
(是的,我已取消注释以上行)
/usr/bin/google-chrome-stable 和 google-chrome-stable 成功从终端启动 chrome。
我也试过了
jupyter lab --browser=google-chrome-stable
jupyter lab --browser google-chrome-stable
没有成功。
当我在我的系统上安装 Pale Moon 时,Jupyter 曾经在浏览器中打开,但现在我已经删除了它,我似乎无法让它工作。 google-chrome-stable 现在是我的默认浏览器。
显而易见的解决方法是将 localhost URL 复制到 Web 浏览器,但我试图避免这种情况。
【问题讨论】:
-
尝试
google-chrome而不是google-chrome-stable前者对我有用,后者对我无效。此外,您的发行版/Chrome 版本/安装方式(系统包管理器/flatpak/snap)可能是相关且有用的信息。 -
google-chrome对我不起作用。google-chrome-stable是我安装的包。我更新了问题以声明我正在使用 Manjaro。
标签: jupyter-notebook jupyter jupyter-lab