A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
docs: update Streamlit guide to reflect caching changes (#5095)
Srihari Thyagarajan88d069bd673f
diff --git a/docs/guides/coming_from/streamlit.md b/docs/guides/coming_from/streamlit.mdindex 17381adcd1..217a1139cb 100644--- a/docs/guides/coming_from/streamlit.md+++ b/docs/guides/coming_from/streamlit.md@@ -215,11 +215,13 @@ def expensive_computation(args):marimo:```pythondef expensive_computation(args):# ...```+marimo provides [`mo.cache`](../../api/caching.md/#marimo.cache) and [`mo.lru_cache`](../../api/caching.md/#marimo.lru_cache) for caching function return values, as well as [`mo.persistent_cache`](../../api/caching.md/#marimo.persistent_cache) for caching variables to disk.+### 8. Session StateStreamlit uses `st.session_state` for persisting data. In marimo, you can use