Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Vishal Thengane vgthengane

🏠
Working from home
View GitHub Profile
@vgthengane
vgthengane / SessionState.py
Created Jul 28, 2021
Session state for streamlit library.
View SessionState.py
import streamlit as st
from streamlit.hashing import _CodeHasher
try:
# Before Streamlit 0.65
from streamlit.ReportThread import get_report_ctx
from streamlit.server.Server import Server
except ModuleNotFoundError:
# After Streamlit 0.65
from streamlit.report_thread import get_report_ctx