Interactive Legend Behavior version 3.6.3 to 3.7.2

I have noticed that when hiding/muting the glyphs using the interactive legend no longer mutes the legend entry. This is useful to know which glyph are being hidden/muted.

This behavior is reproducible user guide web page. With the version set to 3.6.3, the interactive legend mutes the legend entry when the entry is clicked. Interactive legends — Bokeh 3.6.3 Documentation

With the version set to 3.7.2, the interactive legend does not mute the legend entry when the entry is clicked. Interactive legends — Bokeh 3.7.2 Documentation

There were significant changes made to the legend implementation in 3.7 in order to support accessibility improvements.[1] This is probably a bug resulting from that work that needs to be sorted out. I’d advise to make a GitHub Issue with full details.


  1. Specifically, legends became DOM elements rather than drawn on canvas, so that they can be accessed by tabbing through a screen reader. ↩︎