Experimental Fragment for faster reload in Streamlit
TL;DR
  • Streamlit make a full reload of your app at each interaction
  • Fragments is a new feature that allows your app to be modular and avoid multiple runs
In my previous post i talked about how Streamlit can be organized for complex functionalities.
A new feature named fragments allows your application to avoid a full reload of the app.
It is very useful when you want to create independent blocks or want to cache your API calls.
Next time you create a feature, use the decorator `@st.experimental_fragment` to reload only what is inside the fragment and make your app faster.
4
1 comment
Davide Lupis
5
Experimental Fragment for faster reload in Streamlit
Data Alchemy
skool.com/data-alchemy
Your Community to Master the Fundamentals of Working with Data and AI — by Datalumina®
Leaderboard (30-day)
Powered by