☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Add_root bokeh 3.0.3

Community Supportserverbokeh
Nirwa
Nirwa

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 :slight_smile: .
Any hints to what I am missing would be much appreciated.

⌁   Link to post
Bryan
Bryan

@Nirwa There was another topic or two related to this recently, unfortunately I don’t have time just now to go searching for them. IIRC there is some issue currently with dynamically adding/removing roots. The workaround is to add a single top level “container” such as a column once, up front, and then to add/remove its children.

⌁   Link to post

End of archived discussion · Replies are disabled