jrieke / streamlit-analytics

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

Error on show_results #23

Closed tiagocampo closed 1 year ago

tiagocampo commented 1 year ago

Hello, I'm trying to use your implementation and saving the results to a json file. It works fine when running on my local machine, but when deploying on a server I keep getting: streamlit_analytics.stop_tracking(save_to_json='path', unsafe_password='somepass') display.show_results(counts, reset_counts, unsafe_password) metric() got an unexpected keyword argument 'help'.

I'm running on python 3.7, streamlit 1.9 and analytics 0.4.1.

Thanks for your time and attention.

tiagocampo commented 1 year ago

Ok, I found the error. From version 1.11 onwards st.metric() now accepts a help attribute. Since I'm on 1.9 I had to comment out the help string on the display.py file.