lux-org / lux

Automatically visualize your pandas dataframe via a single print! 📊 💡
Apache License 2.0
5.15k stars 365 forks source link

[BUG] saving visualization as html in case of specific intent #424

Closed khalidbouziane closed 2 years ago

khalidbouziane commented 2 years ago

when I tried to save (export) my visualization as an html file with a specific intent, the first part of the html file ( Current Visualization based on user intent part) is not displayed properly.

for example if you try this code: import pandas as pd import lux df = pd.read_csv("https://raw.githubusercontent.com/lux-org/lux-datasets/master/data/college.csv") df.intent = ["MedianEarnings"] df

After running the code, it was displayed correctly in jupyter notebook, but when I saved the widget as an html file, and open it, the first chart (Current Visualization) is lost.

HERE how it looks like:

image

cgarciae commented 2 years ago

This issues is caused by lux-widget>=0.1.7, I can confirm this works in 0.1.6:

lux-widget-0 1 6

@khalidbouziane as a quick fix you can revert to 0.1.6:

pip install lux-widget==0.1.6
dorisjlee commented 2 years ago

This issue is fixed now in lux-widget:#103.