Skip to content

Instantly share code, notes, and snippets.

@jfbercher
jfbercher / st_local_storage.py
Created March 6, 2026 18:55 — forked from snehankekre/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 / nbmerge.py
Created January 18, 2017 07:57 — forked from fperez/nbmerge.py
Merge/concatenate multiple IPython notebooks into one.
#!/usr/bin/env python
# Note, updated version of
# https://github.com/ipython/ipython-in-depth/blob/master/tools/nbmerge.py
"""
usage:
python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb
"""
import io