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

Better support for hvPlot .interactive #1824

Closed
jbednar opened this issue Dec 4, 2020 · 0 comments · Fixed by #1900
Closed

Better support for hvPlot .interactive #1824

jbednar opened this issue Dec 4, 2020 · 0 comments · Fixed by #1900
Labels
type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@jbednar
Copy link
Member

jbednar commented Dec 4, 2020

The new .interactive functionality in hvPlot is great, making it simple to make little Panel apps with linked plots:

import panel as pn, xarray as xr, holoviews as hv, hvplot.xarray
pn.extension()

ds = xr.tutorial.open_dataset('air_temperature')
image = ds.hvplot('lon', 'lat')
stream = hv.streams.PointerXY(source=image, x=-88+360, y=40)
timeseries = ds.interactive.sel(lon=stream.param.x, lat=stream.param.y,
                                method="nearest").hvplot('time')

pn.Column(image, timeseries.dmap())

interactive

However, at first I thought it didn't work, because I had passed in timeseries instead of timeseries.dmap(). Can Panel add a Pane type for hvPlot interactive objects (image here is hvplot.xarray.XArrayInteractive, but there's presumably hvplot.pandas.PandasInteractive, etc.) so that users don't have to think about the type that .interactive....hvplot() returns, and Panel will just display it? Right now Panel happily accepts timeseries but silently ignores it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants