Custom widget doesn't show up in jupyter

I was trying to make use of Adding a custom widget — Bokeh 2.4.2 Documentation

but adding it to layout in a jupyter notebook just collapses the entire cell.

Am I doing something wrong? Keeping only the plot and the default slider widget renders fine

Hi @Lordan it’s really necessary to provide a lot more information in order for anyone to be able to help past offhand speculation. All relevant versions, any browser JS console log messages, and a link to an actual complete notebook would be advised. Otherwise, the only thing that comes to mind is that in notebooks in particular, you need to call output_notebook after the custom extension is defined. The output_notebook call is what “publishes” BokehJS into the browser, including any extensions.