☰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

Remove box annotation

Community Supportbokeh
Ken
Ken

For removing box annotation, it seems solution was following.

  • f.renderers = [r for r in f.renderers if r.name != ‘my_box_annotation’]

But it won’t work in current bokeh version 2.4.2.

These annotation object is not in plot.renderers.
How should I reach these annotation object ?

Thanks

⌁   Link to post
Bryan
Bryan

Generally speaking, it’s better to toggle the visible attribute of things you want to hide/show, and update the the data or properties of existing models rather that add/delete objects wholesale.

⌁   Link to post

End of archived discussion · Replies are disabled