首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >刚刚更新Ubuntu到22.04,现在我不能打开木星笔记本

刚刚更新Ubuntu到22.04,现在我不能打开木星笔记本
EN

Stack Overflow用户
提问于 2022-04-23 21:30:04
回答 6查看 3.5K关注 0票数 1

当我尝试启动木星笔记本时,浏览器会启动并得到以下错误:

代码语言:javascript
复制
Access to the file was denied

The file at /home/benjamin/.local/share/jupyter/runtime/nbserver-11758-open.html is not readable.

It may have been removed, moved, or file permissions may be preventing access.

我试着跑

代码语言:javascript
复制
jupyter lab clean --all
pip3 install jupyterlab --force-reinstall

根据这里的建议:Jupyter Notebook: Access to the file was denied。命令运行,但我仍然获得对文件的访问被拒绝错误。另外,在reinstall命令上,它会发出以下内容:

代码语言:javascript
复制
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 4.2.5 requires pyqt5<5.13, which is not installed.
spyder 4.2.5 requires pyqtwebengine<5.13, which is not installed.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
anaconda-project 0.9.1 requires ruamel-yaml, which is not installed.
spyder 4.2.5 requires jedi==0.17.2, but you have jedi 0.18.1 which is incompatible.
spyder 4.2.5 requires parso==0.7.0, but you have parso 0.8.3 which is incompatible.
sphinx 4.0.1 requires Jinja2<3.0,>=2.3, but you have jinja2 3.1.1 which is incompatible.
sphinx 4.0.1 requires MarkupSafe<2.0, but you have markupsafe 2.1.1 which is incompatible.
python-language-server 0.36.2 requires jedi<0.18.0,>=0.17.2, but you have jedi 0.18.1 which is incompatible.
fermipy 1.0.1+5.g5a57 requires astropy<4, but you have astropy 4.2.1 which is incompatible.

这可能是问题的一部分,也可能不是问题。

交叉贴在这里:https://discourse.jupyter.org/t/after-updating-to-ubuntu-22-04-i-am-no-longer-able-to-access-jupyter-notebook/13991

这里:https://askubuntu.com/questions/1404330/after-updating-to-ubuntu-22-04-i-am-no-longer-able-to-access-jupyter-notebook

在reddit上:https://www.reddit.com/r/learnpython/comments/uaipzo/i_just_updated_my_machine_to_ubuntu_2204_now_i/

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2022-04-24 23:52:29

更新:我现在可以通过使用打印到控制台的URL访问笔记本。(只需复制并粘贴到Firefox浏览器中即可)

我仍然想弄清楚如何用'jupyter笔记本‘命令打开它,就像它在更新之前的工作方式一样,但是现在这是一个有用的解决方法。

票数 2
EN

Stack Overflow用户

发布于 2022-04-24 01:30:11

你试过设置

代码语言:javascript
复制
c.NotebookApp.use_redirect_file = False

在jupyter_notebook_configuration.py文件中?

如果你试过,你是否删除了行首的“#”?

我的Ubuntu22.04也有同样的问题,这个问题得到了解决。

票数 1
EN

Stack Overflow用户

发布于 2022-06-21 20:41:08

我首先用: jupyter笔记本-生成-config创建了这个文件,然后按照您所说的取消注释并更改行c.NotebookApp.use_redirect_file。

现在起作用了!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71983770

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档