Kanaries / pygwalker

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

alternative for display_chart() in flask. #491

Open anandakrishnankb opened 4 months ago

anandakrishnankb commented 4 months ago

display_chart() only works in jupyter notebook.How can I render a chart's image whose spec is already available?

longxiaofei commented 4 months ago

pip install pygwalker==0.4.8a3

You can use new html api, but currently these APIs are still in the stage of development, and pygwalker's team is improving these APIs.

from pygwalker.api.html import to_render_html

html = to_render_html(df, spec="your spec")