reproducible example:
import xarray as xr
import holoviews as hv
import bokeh as bk
ds = xr.tutorial.open_dataset("air_temperature").isel(time=0)
ds["airx2"] = ds["air"] * 2
hover = bk.models.HoverTool(tooltips=[
('air 1', "@air"),
('air 2', "@airx2"),
])
hv.Image(ds, ["lon", "lat"], ["air", "air", "airx2"]).opts(tools=[hover])
If you don’t want to repeat vdim,
import xarray as xr
import holoviews as hv
import bokeh as bk
ds = xr.tutorial.open_dataset("air_temperature").isel(time=0)
ds["airx2"] = ds["air"] * 2
hover = bk.models.HoverTool(tooltips=[
('air 1', "@image"),
('air 2', "@airx2"),
])
hv.Image(ds, ["lon", "lat"], ["air", "airx2"]).opts(tools=[hover])