Kanaries / pygwalker

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

Add support for Panel Holoviz #37

Open arifin-chemist89 opened 1 year ago

arifin-chemist89 commented 1 year ago

Thank you for developing an awesome program! Related to other requests, I would like to ask about the supports for Panel Holoviz (https://panel.holoviz.org/). Please let me know if it is better to ask the Panel's developers about it. Thanks in advances.

Asm-Def commented 1 year ago

Actually, they've already been usable together since PyGWalker allowed rendering data directly to HTML code with pyg.to_html from #25. you can try

html_pannel = pannel.pn.HTML(pyg.to_html(df))
html_pannel

for it.

But this is not always an elegant solution, because it actually embeds all the data in the web page, and does not effectively use the data-interaction capabilities provided by Panel. We're looking forward to your feedback and ideas about it.

BTW: Welcome to join our discord discord invitation link to keep track of the latest progress.

philippjfr commented 1 year ago

I've been trying to integrate this more deeply (e.g. to allow leveraging binary communication to send the data to the browser). However in Panel 1.0 (to be released in the near future) each component has to render into the shadow DOM. I've been trying to get that working but am experiencing some issues because graphic-walker does not much like being rendered into the shadow DOM. Any thoughts on what it would make that a supported configuration? Should I raise an issue in the graphic-walker repo?

philippjfr commented 1 year ago

Okay, ignore me, I just need to wrap graphic-walker directly:

Screen Shot 2023-02-24 at 18 09 51
Asm-Def commented 1 year ago

@philippjfr Congrats on your achievement! Looking forward to your new release and subsequent feedback.

philippjfr commented 1 year ago

While I have you, what's the rough expectation on what the rough magnitude in the size of data you expect graphic-walker to stay performant with?

Asm-Def commented 1 year ago

While I have you, what's the rough expectation on what the rough magnitude in the size of data you expect graphic-walker to stay performant with?

For the current version of graphic-walker, we tested about 70 MB CSV (with 800,000 rows X 12 columns).

and there's been some works on the performance these days, maybe released in a few weeks.