JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.53k stars 49 forks source link

Make it easy to use Lets-Plot with Panel #870

Open MarcSkovMadsen opened 12 months ago

MarcSkovMadsen commented 12 months ago

Hi Lets-Plot

A user of Panel is asking how he can use Lets-Plot with Panel to build data apps in https://github.com/holoviz/panel/issues/5475

I've investigated and found a quick, preliminary solution in https://github.com/holoviz/panel/issues/5475#issuecomment-1704336379

Based on that, it would be really nice if the Lets-Plot javascript provided

If you are interested in getting Lets-Plot supported with Panel and the combo documented in the Lets-Plot docs, then please reach out in the original Panel issue. Thanks.

https://github.com/JetBrains/lets-plot/assets/42288570/b3f9d3c0-2b47-4292-b782-8d3598ae32d9

alshan commented 11 months ago

Hi, this sounds very interesting! Will take a look likely next week. (currently vacationing)

OSuwaidi commented 11 months ago

Any updates on this? 💭

alshan commented 11 months ago

Sorry, didn't have time last week. @MarcSkovMadsen its likely make sense to setup a little oss project at GitHub containing all necessary for imbedding lets-plot in a panel app - similar to streamlit-letsplot. Could you do it and seed it with your initial "LetsPlotPane" code?

A minimal sample app would be greatly handy as well. Then we could go over use cases and fix/improve this code to perfection :)

MarcSkovMadsen commented 11 months ago

Before creating a separate repository we should figure out if Panel wants to support it natively. The component strategy of Panel is different then Streamlit. Streamlit lets the community build all components with its pros and cons while Panel takes responsibility for many more components with its pros and cons.

Please join the discussion in https://github.com/holoviz/panel/issues/5475.

OSuwaidi commented 10 months ago

@alshan Any updates regarding this issue?

alshan commented 10 months ago

Nothing much, IFAIU we're waiting for Phillipps input (https://github.com/holoviz/panel/issues/5475) on my proposal above https://github.com/JetBrains/lets-plot/issues/870#issuecomment-1722710641