Skip to content

Instantly share code, notes, and snippets.

View sfc-gh-jcarroll's full-sized avatar

Joshua Carroll sfc-gh-jcarroll

  • Snowflake
  • Oakland, CA
View GitHub Profile
@sfc-gh-jcarroll
sfc-gh-jcarroll / st_local_storage.py
Last active November 27, 2024 09:08
Local storage access in Streamlit - st_local_storage
# NOTE: This feature uses browser local storage! AKA it stores data on a viewer's
# machine. This may have privacy and compliance implications for your app. Be sure
# to take that into account with any usage.
import json
from typing import Any
import uuid
import streamlit as st
# Requires `pip install streamlit-js`