I think it’s similar to this:
When you set pn.widgets.Select, hvplot becomes a pn.Row object with the first item being a pn.pane.Holoviews and the second item as a pn.pane.Select. With the type changes in mind, this works:
split hvplot call to save to two variables
change source to point to image.object (the actual holoviews object, not panel)
add select widget to column
import panel as pn
import numpy as np
import xarray as xr
import holoviews as hv
import hvplot.xarray
pn.extension()
ds = xr.tutorial.open_dataset('air…
image, select = ds.hvplot('lon', 'lat', widgets={'time':pn.widgets.Select})
Once widgets
is passed, the image is no longer an image type, but a row, so you need to split it out. Once you split it out, you can call redim on image.