Skip to content

Instantly share code, notes, and snippets.

View M-Ze's full-sized avatar
🐍
Learning

MZe M-Ze

🐍
Learning
  • Bavaria, Germany
View GitHub Profile
@okld
okld / multipage_settings_app.py
Last active July 2, 2024 09:56
Streamlit - Settings page with session state
import streamlit as st
from persist import persist, load_widget_state
def main():
if "page" not in st.session_state:
# Initialize session state.
st.session_state.update({
# Default page.
"page": "home",
@tvst
tvst / st_state_patch.py
Last active January 21, 2024 18:31
DO NOT USE!!! Try st.session_state instead.
"""Another prototype of the State implementation.
Usage
-----
How to import this:
import streamlit as st
import st_state_patch