microsoft / lida

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

Add data as a parameter to visualize #132

Open Jesusdiazrivero opened 3 months ago

Jesusdiazrivero commented 3 months ago

It should be possible to pass data to the visualize function instead of having to call summarize each time.

Currently the visualize function is essentially limited to reading the data acquired during summarization step or reading from a file in a very specific location.

Suggest a small change to the function so that data can be passed as a parameter instead of read from self. The manager can then pass data this way too.

Jesusdiazrivero commented 3 months ago

I have the change ready, but for some reason am being hit with a "Pull request creation failed. Validation failed: must be a collaborator" error when I try to create the PR. I committed on a forked repo, trying to PR to main.