Closed Dahie closed 4 months ago
@Dahie thanks for raising the bug?
Import streamlit_analytics2 as streamlit_analytics
Did you install streamlit_analytics2 via pip? If you deployed somewhere, did you accordingly update your requirements.txt or pipfile?
Can you share errors or a screenshot of what is shown?
Investigation notes:
with streamlit_analytics.track(
save_to_json=log_path,
load_from_json=log_path):
main()
I havent seen streamlit used in this manner with main and will test if it is supported.
Next steps:
Investigation notes2:
poetry build
poetry install
poetry show
poetry shell
streamlit run wav_streamlit_boilerplate/app.py
Next steps: @Dahie does this fit in with the way you might have been setting up the environment? I cant see anything wrong with your setup or dependencies. What are your thoughts? I can not find an issue with the way streamlit_analytics is being called or version 0.5.3
This is how I set it up as well. Will also investigate further. Thanks!
Sure, no worries! Comment back here if you have any findings ill close the issue later this week without further comments
ok, I found my issue. I was using the wrong parameter value in my tests. http://localhost:8501?analytics=true
instead of on
Sorry, of the inconvenience. 😅
Describe the bug I integrated streamlit-analytics2 in my streamlit app, open the app in my browser with the parameter
analytics=on
, but the graphs are not displayed.To Reproduce You can use this boilerplate, to simulate: https://github.com/WhatAVenture/wav-streamlit-boilerplate
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context I have the same issue in a different project, but the boilerplate shows it clearest.