Nat*_*Tan 1 python python-3.x jupyter-notebook jupyter-lab
尝试使用启动 Jupyter Labjupyter lab会出现以下错误:
AttributeError: 'ExtensionManager' 对象没有属性 '_extensions'
如果这与 Python 有任何关系,我使用的是通过 Homebrew 安装的 3.9.5 版。
> which python3
python3: aliased to /usr/local/bin/python3
> python3 --version
Python 3.9.5
Run Code Online (Sandbox Code Playgroud)
我使用 pip3 安装了 Jupyter。
但是,我可以使用jupyter notebook和jupyter console。只会jupyter lab导致此错误消息。
您需要将nbclassic升级到最新版本:
pip install nbclassic==0.2.8 # in May 2021
pip install nbclassic -U # or just try this (may require running twice)
Run Code Online (Sandbox Code Playgroud)
或者如果使用 conda:
conda install -c conda-forge nbclassic=0.2.8 # in May 2021
conda update nbclassic
Run Code Online (Sandbox Code Playgroud)
这是因为两天前(2021-05-10)jupyter-server 版本中引入了更改,请参阅JupyterLab GitHub 存储库中的讨论。
您可以像 krassowski 提到的那样更新 nbclassic 或禁用扩展 nbclassic 直到错误被修复。
就我而言,更新 nbclassic 在 Apple M1 上不起作用。所以,我不得不使用禁用它 -
jupyter server extension disable nbclassic
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1005 次 |
| 最近记录: |