pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

alternative for display_chart() in flask.

Open anandakrishnankb opened this issue 11 months ago • 1 comments

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

anandakrishnankb avatar Mar 20 '24 15:03 anandakrishnankb

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")

longxiaofei avatar Mar 22 '24 15:03 longxiaofei