I am using jupyter notebook and installed.
ipywidgets==7.4.2 widgetsnbextension pandas-profiling=='.0.0
and also I ran:
!jupyter nbextension enable --py widgetsnbextension
but when running:
from pandas_profiling import ProfileReport
profile = ProfileReport(df, title="Pandas Profiling Report", explorative=True)
profile.to_widgets()
I get the error:
ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
Any idea why? Tried proposed solutions.
I tried everything you mentioned in a new environment using conda
and I had another issue related to the version of ipywidgets
(a bug found in Github with comments saying that got solved after using last version). I solved the problem I had installing last version of ipywidgets
. Here is my process:
conda
(I use miniconda):conda create --name teststackoverflow python=3.7
conda activate teststackoverflow
jupyter
:pip install jupyter
pip install ipywidgets widgetsnbextension pandas-profiling
jupyter notebook
in the console to turn on the notebooks server and create a new notebook.!jupyter nbextension enable --py widgetsnbextension
With the result:
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK
df
:import 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()
Final output looks good:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With