jupyter笔记本显示html代码且未在浏览器中打开

时间:2019-12-03 20:26:23

标签: jupyter-notebook anaconda

我刚刚安装了anaconda,并且试图打开Jupyter笔记本,但是下一个代码显示在记事本中:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="1;url=http://localhost:8890/tree?token=*the real token*" />
    <title>Opening Jupyter Notebook</title>
    <script>
      setTimeout(function() {
        window.location.href = "http://localhost:8890/tree?token=*the real token*";
      }, 1000);
    </script>
</head>
<body>

<p>
    This page should redirect you to Jupyter Notebook. If it doesn't,
    <a href="http://localhost:8890/tree?token=*the real token*">click here to go to Jupyter</a>.
</p>

</body>
</html>

如果我复制URL,它可以工作,但是我想从anaconda导航器中打开jupyter,但我不知道如何解决。我在Google上搜索了此问题,但找不到解决该问题的任何方法

1 个答案:

答案 0 :(得分:0)

默认配置似乎已损坏

尝试在此StackOverflow帖子中发布的解决方案。

How to change the default browser used by the ipython/jupyter notebook in Linux?

您可以设置使用哪个浏览器打开jupyter笔记本。