Efficiently display changing table data at least every second

Hello @marcsetgo, welcome to the community!

There are multiple workarounds for this problem and no clear winning solution yet. (The team considers building more obvious way for Streamlit apps to handle near realtime updates, but until then we’ll have to do with Python workarounds).

One of my favorites is using asyncio to drive your table updates and use a Streamlit Placeholder to update the display of the table. All native Python and no Streamlit component to build. You’ll find an example on this thread.

Don’t expect to do sub-second update though :wink:, for that you’ll probably need to do a Streamlit component and do all the updates on the JS side.

Hope this helps a bit!
Fanilo

1 Like