I’m using the golden layout template from the Vtkslicer example. I want to re purpose this layout and put in my own elements. I’d like to put in a matplotlib figure in this layout.
I create one as follows:
But when I substitute a bokeh pane for this matplotlib one, the GUI still loads but none of the layout elements are populated.
Also, and possibly unrelated, when I run the Vtkslider example in a jupyter notebook, I dont get any output, however when I run $ panel serve golden_layout.ipynb it works fine.
Any ideas? The mpl element itself also works perfectly fine in a jupyter notebook.
I just realized i should be looking in the browser console for errors:
console.trace() Error: "Model 'panel.models.markup.HTML' does not exist. This could be due to a widget or a custom model not being registered before first usage.
if you need the last version, @philippjfr recommended to set a environment variable (BOKEH_RESOURCES=inline), something like this (in a conda environment)