Plotting fails when creating the convergence plots (cells [11] and [12])
# Interactive convergence plot using HoloViews
# This creates a dual y-axis plot with selectors for Stokes parameter and channel
convergence_plot = plot_convergence_history(
return_dict,
time=0,
stokes='I',
chan=0,
width=800,
height=400,
)
ModuleNotFoundError Traceback (most recent call last)
[/usr/local/lib/python3.12/dist-packages/IPython/core/formatters.py](https://localhost:8080/#) in __call__(self, obj, include, exclude)
968
969 if method is not None:
--> 970 return method(include=include, exclude=exclude)
971 return None
972 else:
9 frames
[/usr/local/lib/python3.12/dist-packages/panel/io/notebook.py](https://localhost:8080/#) in ipywidget(obj, doc, **kwargs)
567 Returns an ipywidget model which renders the Panel object.
568 """
--> 569 from jupyter_bokeh.widgets import BokehModel
570
571 from ..pane import panel
ModuleNotFoundError: No module named 'jupyter_bokeh'
:DynamicMap [Stokes,Channel]
I've tried adding a import statement for jupyter_bokeh. When I do that the cell runs, but the plot does not render. Colab suggests adding the following code to enable custom juypter widgets:
from google.colab import output
output.enable_custom_widget_manager()
But running this cell then the plotting cell still doesn't render the plot.
The images that are generated using holoviews render correctly earlier in the notebook.
Plotting fails when creating the convergence plots (cells [11] and [12])
I've tried adding a import statement for jupyter_bokeh. When I do that the cell runs, but the plot does not render. Colab suggests adding the following code to enable custom juypter widgets:
But running this cell then the plotting cell still doesn't render the plot.
The images that are generated using holoviews render correctly earlier in the notebook.