首页 > 解决方案 > Jupyter Lab 未在 Ubuntu 上打开

问题描述

我使用 Ubuntu 作为我的操作系统。我已经能够通过命令行下载并打开 anaconda-navigator。但我无法打开 Jupyter lab 或 jupyter notebook。它给了我以下错误。

Access to the file was denied
The file at file:///home/basant/.local/share/jupyter/runtime/jpserver-6359-open.html is not readable. It may have been removed, moved or file permissions may be preventing access.

我尝试更改权限,但没有帮助。卸载并重新安装一切。没用。

标签: ubuntucommand-lineanacondajupyterjupyter-lab

解决方案


Ubuntu升级后我遇到了同样的问题。问题通过两个步骤解决:

  1. 从终端类型生成一个 jupyter 配置文件:

     jupyter notebook --generate-config 
    
  2. 然后打开文件,保存在/home/username/.jupyter/jupyter_notebook_config.py,追加c.NotebookApp.use_redirect_file = False保存。您现在可以启动 jupyter。


推荐阅读