
Hi,
I’m trying to have my bokeh app update its template as callback of some button.
I run my app with bokeh serve
In my callback function I have the following :
curdoc().clear()
document = curdoc()
document.template = new_template_I_want_to_apply
document.add_root(some_layout)
document.add_root(some_layout2)
set_curdoc(document)
When I click on the button, what happens is that the content of the old template is not removed.
What is it I’m missing here ?
Thanks in advance,
