我正在使用jupyter笔记本和安装。
ipywidgets==7.4.2 widgetsnbextension pandas-profiling=='.0.0我还跑了:
!jupyter nbextension enable --py widgetsnbextension但在跑步时:
from pandas_profiling import ProfileReport
profile = ProfileReport(df, title="Pandas Profiling Report", explorative=True)
profile.to_widgets()我知道错误:
ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html知道为什么吗?尝试过建议的解决方案。
发布于 2021-06-21 19:32:01
我使用conda尝试了您在新环境中提到的所有内容,我还遇到了另一个与ipywidgets版本有关的问题(在Github中发现了一个bug,评论说在使用上一个版本后就解决了)。我解决了安装最后一个版本的ipywidgets的问题。以下是我的过程:
conda创建一个新环境(我使用miniconda):conda create --name teststackoverflow python=3.7conda activate teststackoverflowjupyterpip install jupyterpip install ipywidgets widgetsnbextension pandas-profilingjupyter notebook打开笔记本服务器并创建一个新的笔记本。!jupyter nbextension enable --py widgetsnbextension其结果是:
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OKdfimport pandas as pd
df = pd.DataFrame({'A': [1, 2, 3, 4], 'B': [1, 2, 3, 4]})from pandas_profiling import ProfileReport
profile = ProfileReport(df, title="Pandas Profiling Report", explorative=True)
profile.to_widgets()最后的输出看起来很好:

发布于 2021-07-07 08:18:13
这对我起了作用(对你们中所有喜欢pip而不是conda的人来说.)在虚拟环境中运行
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension或者,如果你喜欢在你的笔记本上运行它
!pip install ipywidgets
!jupyter nbextension enable --py widgetsnbextension在你的笔记本上加上
from ipywidgets import FloatProgress发布于 2021-08-17 10:52:35
安装ipywidget和构建木星实验室为我做了这方面的工作。
conda install -c conda-forge ipywidgetsconda install -c conda-forge nodejs=16.6.1jupyter lab buildhttps://stackoverflow.com/questions/67998191
复制相似问题