jrieke / streamlit-analytics

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

Fix ImportError with Streamlit >= 1.4.0 #16

Closed yanirs closed 1 year ago

yanirs commented 2 years ago

Fixes #14.

I only noticed that there's already a PR for this (#12) after fixing it locally, but I figured it's worth pushing anyway since this solution only catches ImportErrors and isolates the try-except to the import section of the file.

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.