jrieke / streamlit-analytics

👀 Track & visualize user interactions with your streamlit app
MIT License
262 stars 48 forks source link

Fixing ctx call for version >1.4 #12

Closed Coilm closed 1 year ago

Coilm commented 2 years ago

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 )

riyadparvez commented 2 years ago

Can we merge this please?

jrieke commented 1 year ago

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.