Prevent new tab containing chart to be launched with every refresh

Hi guys,

On one of the app I’m creating, a new tab containing a plotly express chart is launched with every refresh - see video attached for details ->

2020-06-14_22-43-15

The issue seems to be appearing with plotly express only - Has anyone come across something similar?

Note that every new tab has a different code, e.g. http://127.0.0.1:61231/ or http://127.0.0.1:61279/

Happy to share the code if needs be :slight_smile:

Thanks,
Charly

Fixed!

There was a fig.show() in my code, along with st.plotly_chart(fig)! :slight_smile:

4 Likes

Hello, can you please elaborate on how you fixed the issue? I have the same problem but I don’t have ny st.plotly_chart(fig) in my code - what library is st?

Thank you

Hi Theodore,

Any code dupe(s) that may create that issue?

Charly