mystmd
mystmd copied to clipboard
Some features of interactive plots not rendering
Description
I've noticed that some features on interactive dashboards built with Bokeh are not updating when the selection changes. This issue affects the usability and interactivity of the plots.
Additional notes
I am not sure what causes this, but it might not be a MystMD or JupyterBook issue. It might be due to how data streaming processes are handled in the backend with Bokeh when no Python kernels are running behind the scenes.
Minimal reproducible example:
import holoviews as hv
import xarray as xr
from holoviews import opts
hv.extension("bokeh")
rda_url = "https://data.rda.ucar.edu/"
annual_means = rda_url + "pythia_era5_24/annual_means/"
xrds = xr.open_dataset(annual_means + "temp_2m_annual_1940_2023.zarr", engine="zarr")
xrds = xrds.isel(time=slice(0, 5))
xrds.load();
xrds["VAR_2T"].hvplot(groupby="time", widget_location="bottom")