Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
10.7k stars 545 forks source link

[BUG] Param "dark" not work #571

Closed Erimus-Koo closed 1 month ago

Erimus-Koo commented 1 month ago

dark does not work in the current version. It's worked well in older versions. I didn't change my code and just run an old notebook. I can only click the theme buttons to change the theme, and my choice won't be remembered.

Name: pygwalker Version: 0.4.8.9

Python 3.9 Jupyter Lab

ObservedObserver commented 1 month ago

Hi @Erimus-Koo, thanks for reporting this issue.

It looks like the dark parameter has been replaced with appearance in the current version. You can update your code like this:

pyg.walk(df, appearance="dark")

We'll address this in the next release to ensure backward compatibility or add a warning.

Erimus-Koo commented 1 month ago

想试来着 但我刚好用pip重装了一下jupyter lab,现在跑不通了,是有啥依赖我漏装了嘛? image

Erimus-Koo commented 1 month ago
 jupyter --version
Selected Jupyter core packages...
IPython          : 8.25.0
ipykernel        : 6.29.4
ipywidgets       : 8.1.3
jupyter_client   : 7.4.9
jupyter_core     : 5.7.2
jupyter_server   : 2.14.1
jupyterlab       : 3.6.7
nbclient         : 0.10.0
nbconvert        : 7.16.4
nbformat         : 5.10.4
notebook         : 6.5.7
qtconsole        : not installed
traitlets        : 5.14.3

Python 3.12.1 pygwalker 0.4.8.9


More info 👆🏻

longxiaofei commented 1 month ago

Hi @Erimus-Koo

This may be caused by the inconsistent jupyter extension versions that jupyterlab and ipywidgets depend on.

pip install --upgrade jupyterlab
pip install --upgrade ipywidgets

Then restart jupyter lab.

Erimus-Koo commented 1 month ago
pip install --upgrade ipywidgets

ipywidgets helps, thanks. Maybe this could be included in the readme.md or FAQ.

BTW, appearance worked.

And I've noticed that the spec has a new json version, that's great. Is there a changelog, I'm afraid for missing something new.