fbdesignpro / sweetviz

Visualize and compare datasets, target values and associations, with one line of code.
MIT License
2.9k stars 273 forks source link

Deprecation warning while importing `display()` (Sweetviz 2.2.1) #156

Closed GegznaV closed 11 months ago

GegznaV commented 1 year ago

Sweetviz 2.2.1 gives several deprecation warnings. One of them:

Details:

[c:\Users\user\anaconda3\envs\env\Lib\site-packages\sweetviz\dataframe_report.py:580](file:///C:/Users/user/anaconda3/envs/env/Lib/site-packages/sweetviz/dataframe_report.py:580): DeprecationWarning: Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython display
  from IPython.core.display import display
fbdesignpro commented 12 months ago

@GegznaV thanks for the heads up! I was not seeing it on my test bench running the library, but I'm sure it shows up in Jupyter. I'm on a new machine so I will set that up. The workaround is easy enough but I do want to have a before/after test case.

GegznaV commented 12 months ago

The versions of some packages in the environment I use are listed below. I think this issue is related to the fact, that I'm using ipython v8.14.0 and not an older version.

$ conda list | grep 'sweetviz\|jupyter\|ipython'                                                                                                                                                      
ipython                   8.14.0             pyh08f2357_0    conda-forge
ipython-genutils          0.2.0                    pypi_0    pypi
jupyter                   1.0.0                    pypi_0    pypi
jupyter-client            8.2.0                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              5.3.1                    pypi_0    pypi
jupyter-events            0.6.3                    pypi_0    pypi
jupyter-server            2.6.0                    pypi_0    pypi
jupyter-server-terminals  0.4.4                    pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-widgets        3.0.7                    pypi_0    pypi
jupyterlab_widgets        3.0.8              pyhd8ed1ab_0    conda-forge
sweetviz                  2.2.1                    pypi_0    pypi