Skip to content

Instantly share code, notes, and snippets.

@snehankekre
snehankekre / st_local_storage.py
Last active March 6, 2026 18:55 — forked from sfc-gh-jcarroll/st_local_storage.py
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
import time
import uuid
from typing import Any, Optional
from streamlit.time_util import time_to_seconds
@jfbercher
jfbercher / jfb_kstest.py
Last active August 29, 2015 14:16
Implementation of Kolmogorov-Smirnov test (with selectable level $\alpha$) , returns decision, p-values, verbose mode
# Last update: october 19, 2014
## Kolmogorov-Smirnov test
# Author: JF Bercher
# This work is licensed under CreativeCommons Attribution-ShareAlike license
# http://creativecommons.org/licenses/by-sa/4.0/
from pylab import *
import numpy as np
def ecdf(v_data):