Skip to content

Instantly share code, notes, and snippets.

View szeyu's full-sized avatar
:electron:
Upskilling Myself

Sze Yu Sim szeyu

:electron:
Upskilling Myself
View GitHub Profile
@szeyu
szeyu / streamlit_navigation_template.py
Last active October 30, 2024 08:30
A sample streamlit navigation template
import streamlit as st
from pages.login import login
from pages.page1 import page1
from pages.page2 import page2
def init_session():
# Check if the user is signed in
if "signed_in" not in st.session_state:
st.session_state["signed_in"] = False