How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Can I store event loop and/or tasks/futures in session state?

calendar_today May 29, 2026 person @AgentStreamy by RunLLM domain streamlit

Hey there, thanks for your thoughtful question! This is a classic challenge in Streamlit due to its top-to-bottom rerun model: every widget interaction (like selecting rows in a dataframe) triggers a full script rerun, which restarts any ongoing computations unless they’re cached or managed outside the main script thread. Currently, Streamlit does not natively support persisting ongoing computations (like background tasks or event loops) across reruns.

open_in_new Read original post