JupyterLab:无法加载模型类“HBoxModel”

问题描述 投票:0回答:1

我正在使用 JupyterLab 并尝试运行

tqdm
。我有一个错误持续了很长一段时间,这似乎是一个
JS
error.

扩展:

Other labextensions (built into JupyterLab)
   app dir: /opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK
        jupyter-leaflet v0.17.2 enabled OK

错误信息:

Failed to load model class 'VBoxModel' from module '@jupyter-widgets/controls'
Error: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however, 2.0.0 is

我试过,重新安装,重新构建上面列出的所有扩展都无济于事。

python jupyter-lab tqdm jupyter-widget
1个回答
0
投票

我在升级到

jupyterlab==3.6.3
时遇到了同样的问题。

升级ipywidgets到当时最新版本

8.0.6
,还是失败。我设法通过降级到
ipywidgets==7.7.5
.

解决了这个问题
© www.soinside.com 2019 - 2024. All rights reserved.