打开Jupyter Notebook时出现问题

时间:2020-06-07 07:12:36

标签: jupyter-notebook elinks

我在Linux上安装了Anaconda 3,并尝试通过在终端中键入“ jupyter notebook”在浏览器中打开Jupyter Notebook。

但是我得到的是我在下面添加的屏幕。

我猜想,Jupyter Notebook当前是通过“ Elinks”打开的,但是我不知道这是什么。

您知道如何在所需的浏览器(例如Firefox或Chrome)中打开Jupyter Notebook吗?

enter image description here

2 个答案:

答案 0 :(得分:3)

我想添加一些信息,以防您以后想通过 elinks(或终端中的任何其他基于文本的 Web 浏览器)访问 juypter notebook。 我还将介绍如何使用 Anaconda Navigator 打开 jupyter notebook。

首先,您需要先通过在终端中运行此命令来安装 Node.js Javascript 运行时环境。 sudo apt-get install node.js

接下来,关闭并重新打开终端(通过命令行安装新软件时我总是这样做)。

当您下次尝试通过 elinks 访问您的 jupyter notebook 时,它会要求您提供令牌或密码。

选项 1:令牌。 通过在终端中输入 jupyter notebook list 来查找令牌。

选项 2:密码。 您可以通过在终端中输入 jupyter notebook password 来为 jupyter notebook 创建密码。

您现在可以使用令牌或新创建的密码,通过 elinks 等全功能文本网络浏览器访问 jupyter notebook。

如果您想通过 Firefox、Chrome 等访问 jupyter notebook,那么只需使用 anaconda。这将在您的标准 Web 浏览器中自动打开 jupyter notebook。 在终端中输入 anaconda-navigator。 anaconda 导航器打开后,只需从选择中启动 jupyter notebook。

答案 1 :(得分:0)

您可以将Firefox或Chrome设置为default browser,然后应直接在其中打开。

如果仍然没有,您始终可以复制启动jupyter Notebook时显示的URL,并将其粘贴到浏览器中。

    To access the notebook, open this file in a browser:
        file:///home/harshit/.local/share/jupyter/runtime/nbserver-2985-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=9fc770713dbd755750bbe842896420ecfa7abc038581fc04
     or http://127.0.0.1:8888/?token=9fc770713dbd755750bbe842896420ecfa7abc038581fc04

顺便说一句,jupyter笔记本电脑不起作用,因为默认情况下,eLinks浏览器中未启用JS(您可以enable启用)。