I have successfully got my code updated to 3.0.3, but add_root doesn’t seem to update the live document.
In the debugging version of my code (which uses the eventhandler approach, so I can launch everything from python), I can see that this code
for a_root in current_doc.select(dict(name='tabs')):
current_doc.remove_root(a_root)
current_doc.add_root(bkm.Div(text='<div class="loader"></div>', name='tabs'))
which works in the 2.4 version of bokeh, indeed updates current_doc in 3.0.3 in the correct way, but there is no callback to the document being shown in the browser–it remains unchanged. In 2.4 it actually updates and refreshes.
Now it is entirely possible that I have missed something–or am making assumptions why this should be working in 2.4 that are in correct .
Any hints to what I am missing would be much appreciated.