I have a Bokeh chart with some points on it, and I’d like to be able to select some of those points and preview information about them using Streamlit. It’s not hard to add a JS click handler to Bokeh that can get the information I need, but after that I’m not sure how to get it back to Streamlit.
Example: Each of the points on my Bokeh plot has an ID associated with it. I click a few points in Bokeh and then I want to send those IDs to Streamlit, read info from a database, and show it in a table under the chart.
I tried setting the value of a text input field, but it doesn’t trigger any Streamlit events, and clicking on it in the UI removes the content.
Is there a good way to do this?