Complete Bokeh DataTable Example using streamlit-bokeh-events

Hi guys,

I have seen a couple of questions around DataTable. I feel the user needs to be moderately comfortable with bokeh in order to use the events component easily. As the DataTable comes up quite often I thought it would be nice to have a gist around the same. This gist is an attempt to address the questions asked around DataTables in bokeh.
Hope it makes someone’s life a little easier :slight_smile: !

snippet

PS. You need to get the provide_state decorator from state module. you can find it here, state decorator · GitHub

5 Likes

hi @ash2shukla , this looks great. I tried to implement it, however I got the following error:
File “c:\users\lcalm\onedrive\dev\st-piper\env\lib\site-packages\state_init_.py”, line 39
except AttributeError, e:
I had to install state using pip first, but I am not sure if it is the right module, or if meanwhile it is not compatible with the newest streamlit version. Can you help?