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

An example for integration with flask app #767

Closed
sjd-lab opened this issue Jun 30, 2022 · 1 comment
Closed

An example for integration with flask app #767

sjd-lab opened this issue Jun 30, 2022 · 1 comment

Comments

@sjd-lab
Copy link

sjd-lab commented Jun 30, 2022

Hello,

Sorry, This is neither a feature request or a bug report.
I was trying yo use hvplots with flask app and looking for some reference to samples. It will be very useful to have an example on how to open the plots with a web app like flask. Could not find an example here - https://holoviz.org/tutorial/

For eg: below is a sample code from the hvplot demo page

import pandas as pd, numpy as np
idx = pd.date_range('1/1/2000', periods=1000)
df  = pd.DataFrame(np.random.randn(1000, 4), index=idx, columns=list('ABCD')).cumsum()

import hvplot.pandas  # noqa
df.hvplot()

how can I render the plot by an api call or any other way in the browser without loosing the interactivity option

@maximlt
Copy link
Member

maximlt commented Jul 14, 2022

hvPlot plots can be served with Panel, which allows to serve flask app. You can find some more information on Panel's site. If you have more questions, please head over to the HoloViz Discourse where you may people to help you.

@maximlt maximlt closed this as completed Jul 14, 2022
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

2 participants