streamlit-analytics icon indicating copy to clipboard operation
streamlit-analytics copied to clipboard

Fixing ctx call for version >1.4

Open Coilm opened this issue 3 years ago • 1 comments

ReportThread was removed in version 1.4, therefore it is now necessary to use get_script_run_ctx() ( see https://github.com/streamlit/streamlit/issues/4099 )

Coilm avatar Jan 24 '22 15:01 Coilm

Can we merge this please?

riyadparvez avatar Feb 16 '22 03:02 riyadparvez

Hey, thanks for the PR! I decided to implement Streamlit's built-in st.session_state now (which is released since a year), so this is obsolete.

jrieke avatar Oct 26 '22 15:10 jrieke