ubuntu - 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.
我尝试更改权限,但没有帮助。卸载并重新安装一切。没用。
解决方案
Ubuntu升级后我遇到了同样的问题。问题通过两个步骤解决:
从终端类型生成一个 jupyter 配置文件:
jupyter notebook --generate-config
然后打开文件,保存在/home/username/.jupyter/jupyter_notebook_config.py,追加
c.NotebookApp.use_redirect_file = False
保存。您现在可以启动 jupyter。
推荐阅读
- java - assertj 中的 kotlin 扩展函数
- javascript - 处理嵌套的异步循环,尝试在完成后获得单个输出
- c++ - 你能在类初始化列表中定义数组大小吗
- javascript - JavaScript 通过键将对象数组转换为对象
- javascript - Jasmine + TypeScript,找不到Spy类的withArgs()方法
- javascript - 领域数据库链接对象
- python - GridSearchCV,数据框每个部分中每个类的表示
- eclipse - 无法运行 UIMA Ruta 程序(导入不起作用?)
- scala - SnappyData 上的 Theta Sketch (Yahoo)
- odata - o在 component.js 中声明的数据模型 - 我的数据在哪里?