Kanaries / pygwalker

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

[Discuss] Allow PyGWalker to export viz code writen in python visualization lib, such as altair #254

Open ObservedObserver opened 1 year ago

ObservedObserver commented 1 year ago

PyGWalker supports export code in graphic-walker spec or vega-lite spec but those are specification from JavaScript ecosystem, which may not be familiar by developers in Python.

It will be a great way to export python code that is easy to learn or edit by python developers.

Possible solutions:

Related discussions: Is it possible to compile from vega/vega-lite spec to Altair Code?

ArslanKAS commented 11 months ago

PyGWalker supports export code in graphic-walker spec or vega-lite spec but those are specification from JavaScript ecosystem, which may not be familiar by developers in Python.

It will be a great way to export python code that is easy to learn or edit by python developers.

Possible solutions:

  • Export altair code: altair is also a viz lib based on vega-lite, which at least share the same design space with pygwalker.
  • Instruction API: pygwalker now has operation instructions saved in store as edit history. Those instructions can be more easy to learn if there is a corresponding API in py.

Related discussions: Is it possible to compile from vega/vega-lite spec to Altair Code?

Wish it could export plotly code that can be used in Python (Notebook etc).