pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

[Feat] Add support for Plotly Dash

Open samatix opened this issue 2 years ago • 10 comments

Hi maintainers,

Hope this message finds you in good health. I wanted to reach out to ask if it's possible to add support for Plotly Dash. It's useful for creating interactive web-based dashboards but can benefit from all the data exploration part.

Thanks

samatix avatar Feb 21 '23 13:02 samatix

Hi all, customers using plotly apps would love this enhancement and data science teams as well. Thanks for your great library, Ilona

IloBe avatar Feb 25 '23 10:02 IloBe

+1

ghost avatar Mar 15 '23 12:03 ghost

+1

seqyuan avatar Mar 31 '23 05:03 seqyuan

Same here, it'd be super useful

Stephen451 avatar May 19 '23 19:05 Stephen451

And allow to export plotly code... That will be awesome! 👌

DavMelchi avatar Jun 18 '23 18:06 DavMelchi

Thoughts update:

I do believe that allowing graphic-walker/pygwalker to support multiple charts lib is a great idea. Technically, we need to implement a parser layer to transform graphic-walker DSL into other chart code/specification. It's a cool engineering abstract. I will be happy to implement it.

But, I am still not sure why people need a different chart library for visual exploration. I don't find there is much benefit of ploty than vega/vega-lite. Hope someone can share your demands or insights here.

ObservedObserver avatar Aug 17 '23 12:08 ObservedObserver

@ObservedObserver To my opinion, with Plotly Dash you can do much more than visual exploration. It is fast and easy to build a whole Web-application with a lot of different features.

IloBe avatar Aug 18 '23 12:08 IloBe

@ObservedObserver , thanks for checking this out. As @IloBe mentioned, the use case is the same as Streamlit. The purpose is not to use Plotly for the charts but more to embed Pygwalker in a Dash (plotly) app (see examples here).

samatix avatar Aug 20 '23 09:08 samatix

Update

Hi, everyone. Now you can use pygwalker as a component in Plotly Dash, check this document: Use PyGWalker with Plotly Dash

For hosting pygwalker as a web app (or dashboard), you can also use:

  1. Streamlit: https://docs.kanaries.net/pygwalker/use-pygwalker-with-streamlit
  2. Gradio: How to Use PyGWalker with Gradio
  3. shiny-python: How to Integrate PyGWalker with Shiny-Python

Or even flask or django if you are familiar with web development.

ObservedObserver avatar Oct 24 '23 21:10 ObservedObserver