Jupyter Lab 无法在 Ubuntu 上打开

1 ubuntu command-line anaconda jupyter jupyter-lab

我使用 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.
Run Code Online (Sandbox Code Playgroud)

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

小智 6

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

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

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