Clarifying API for selection modes for Taps #13797
Closed
handwerkerd
started this conversation in
General
Replies: 1 comment 1 reply
-
This is a more specific question that I do think I can answer. The https://docs.bokeh.org/en/latest/docs/reference/models/tools.html#bokeh.models.TapTool.mode |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is based on https://discourse.bokeh.org/t/dynamic-figure-problem-with-bokeh-v-3-4-0-udgrade/11416/6 and it was suggested I post here and ask for feedback from @mattpap.
I contribute to a project that uses
events.Tap
to select elements. When a new element was selected, that selection replaced the previously selected element. With an upgrade from bokeh v.3.3.4 to v3.4.0, every tap results in an additional element being selected and I need to tap each element a second time to unselect. Looking through the v3.4.0 release notes, my best guess is this relates to changing the default tap selection mode fromreplace
toxor
in #13545. That said, that seems to be forTapTools
and notevents.Tap
. I'm abokeh
novice and I'm not completely sure how those interact.I'm trying to figure out how to set the selection mode for
events.Tap
toreplace
but it's not obvious in the documentation. I'm not sure if this is just something that can be addressed by clarifying documentation or if the mechanisms to change this parameter are not currently accessible through the API. Any help would be appreciated.If relevant, the bokeh code I'm working with is here: https://github.com/ME-ICA/tedana/blob/f084dc4bf773cf51b52245b5d94ffb5dfebb4339/tedana/reporting/dynamic_figures.py#L411
Thank you
Beta Was this translation helpful? Give feedback.
All reactions