Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarcSkovMadsen opened this issue Sep 3, 2023 · 6 comments
Open

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

MarcSkovMadsen opened this issue Sep 3, 2023 · 6 comments

Comments

@MarcSkovMadsen
Copy link

MarcSkovMadsen commented Sep 3, 2023

Hi Lets-Plot

A user of Panel is asking how he can use Lets-Plot with Panel to build data apps in holoviz/panel#5475

I've investigated and found a quick, preliminary solution in holoviz/panel#5475 (comment)

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

  • A way to set responsive (100%) height and width instead of specific height and width doubles.
  • An official way to clear or update the plot. Right now I just use .innerHTML="" on the parent div.

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.

lets-plot.mp4
@MarcSkovMadsen MarcSkovMadsen changed the title Make it easy to use with Panel Make it easy to use Lets-Plot with Panel Sep 3, 2023
@alshan
Copy link
Collaborator

alshan commented Sep 6, 2023

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

@OSuwaidi
Copy link

Any updates on this? 💭

@alshan
Copy link
Collaborator

alshan commented Sep 18, 2023

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
Copy link
Author

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 holoviz/panel#5475.

@OSuwaidi
Copy link

@alshan Any updates regarding this issue?

@alshan
Copy link
Collaborator

alshan commented Oct 23, 2023

Nothing much, IFAIU we're waiting for Phillipps input (holoviz/panel#5475) on my proposal above #870 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants