microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.6k stars 266 forks source link

Plotly issue in visualize #36

Closed ghost closed 9 months ago

ghost commented 10 months ago

Hi,

Im having issues when using 'plotly' as library.

Example :

i = 0 library = 'plotly' textgen_config = TextGenerationConfig(n=1, temperature=0.2, use_cache=True) charts = lida.visualize(summary=summary, goal=goals[i], textgen_config=textgen_config, library=library) plot_raster(charts[0].raster)

Returns:

ValueError: Unsupported library. Choose from 'matplotlib', 'seaborn', 'plotly', 'bokeh', 'ggplot', 'altair'.

victordibia commented 9 months ago

@trojrobert, any chance you can contribute a fix to this?

trojrobert commented 9 months ago

Yes I will check it out

Alfred-Onuada commented 9 months ago

Hi @victordibia and @trojrobert I just opened a PR to address this issue, please have a look #44

victordibia commented 9 months ago

Closing this as it has been addressed by PR #44