【问题标题】:All jupyter contrib nbextensions are marked as possibly incompatible所有 jupyter contrib nbextensions 都被标记为可能不兼容
【发布时间】:2020-01-28 11:54:51
【问题描述】:

我刚刚安装了jupyter_contrib_nbextensions by:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user

当我打开一个 jupyter 笔记本并导航到 Edit -> nbextensions config 时,我看到以下屏幕:

所有扩展都被标记为“可能不兼容”。一种解决方案是取消选中以下选项:“在没有明确兼容性的情况下禁用 nbextensions 的配置”。但它安全吗?任何想法为什么nbextensions 是不可战胜的?

我的包版本是:

jupyter==1.0.0
notebook==6.0.1
jupyter-contrib-nbextensions==0.5.1

【问题讨论】:

  • 如果您需要uninstall these extensions from Jupyter,一旦您根据开发人员的说法确认没有安全可用,2020 年底:jupyter contrib nbextension uninstall --user(或--system,如果您以这种方式安装它们)。然后使用 pip 或 conda 删除包,例如conda remove jupyter_contrib_nbextensions(然后等待 slooo...w conda 执行)

标签: jupyter-notebook incompatibility jupyter-contrib-nbextensions


【解决方案1】:

您会注意到,在jupyter_contrib_nbextensions0.5.1 版 中,大多数nbextensions 都与4.X 和5.X 版兼容。例如看看这个扩展:

如果您取消选中“在没有明确兼容性的情况下禁用 nbextensions 的配置”选项,您很可能在使用任何扩展时都不会遇到问题。我猜开发人员还没有测试jupyter_contrib_extensions 与最近推出的新notebook 版本6.X。如果您想拥有一个稳定且经过测试的环境,您可以回滚到以前的 jupyter notebook 版本。最新的兼容版本是 5.7.8。只需卸载当前的notebook 并通过执行安装该特定版本:

pip uninstall notebook
pip install notebook==5.7.8

【讨论】:

  • 到 2020 年底,这个答案仍然成立。
  • 2021 年底,这仍然适用。
猜你喜欢
  • 1970-01-01
  • 2020-10-26
  • 1970-01-01
  • 2018-06-29
  • 1970-01-01
  • 2020-04-27
  • 1970-01-01
  • 2014-12-11
  • 1970-01-01
相关资源
最近更新 更多