st-compat is the simplest way to handle compatibility between streamlit versions when building utils and modules for the community!
pip install st-compatfrom st_compat import get_script_run_ctx
ctx = get_script_run_ctx()| Name | Name | Last commit date | ||
|---|---|---|---|---|