Possible to embed arbitrary html inside of Bokeh Panel?

Finding it necessary (given the limitations of Bokeh) to have some html code inside of a Panel object on Bokeh. Embedding the html into the static file won’t work of course in this case since it needs to be the child of a Panel object. The approach taken wrt Folium on medium won’t work for that same reason as well. I was wondering if this is possible, or if someone can point me to the appropriate documentation. Bryan seems to imply in a couple other threads that embedding HTML can be done with a custom Jinja template, I was wondering if someone could point to any examples and whether this object could be used as the child of a Panel.

1 Like

The Div model accepts arbitrary HTML. It doesn’t try to escape it unless you specify render_as_text=True.