This looks great, thanks…
I try to reuse the plot selection example. However, I’d like to remember the indices and also color the selection in red whereas the normal circles are black.
I also added SessionState to keep state, but somehow this does not work (I store the selection in session_state.indices and add to them using:
session_state.indices = list(set(session_state.indices + indices))
.
Plotting if off by one though. I only see the previous selection…
Would you know a trick/ example how I can select data multiple times? The marked points should just increase (so they need to be preserved between individual selections). I’d also need a reset option or better an undo previous addition…
Status:
I added a color column to my df that is modified depending on session_state.indices at the start (to preserve old selections)
What I see:
- all dots black
- 1st selection (in orange); once I release all dots black again
- 2nd selection (in orange); once I release the first selection appears
- …