Black Lives Matter. Please consider donating to Black Girls Code today.

Selecting multiple individual cells with dash table

Hello, I am looking over the dash table documentation and my understanding is that there are components that would allow me to select multiple rows, or multiple columns, but not multiple cells arbitrarily.

From the documentation and the examples at https://dash.plot.ly/datatable/interactivity, I see that I can select multiple cells in a line/rectangle using shift, but I don’t see how to chain together multiple selection.

The behavior that I would like is the following: every time the user clicks on a cell, it becomes selected, if the users clicks again it becomes de-selected. Then the user hits a submit button and I get the selection of cells.

Thank you for your help. I have been enjoying learning about plotly dash, and I was able to put together a demonstration for the biology research lab where I work (you can see it at http://dash.wormcells.com/). Now I want to turn it into a bigger application that will allow people to explore multiple datasets, and that’s why I’m trying to make the selection table.