Open lucasimi opened 4 months ago
If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.
Your feedback helps us prioritize which bugs to investigate and address first.
@lucasimi Thanks for reporting this issue! I was able to reproduce this here. I think the root cause is the same as this issue: https://github.com/streamlit/streamlit/issues/8782
This is mostly expected with the new version since we added a stable identity to a plotly chart based on its parameters. Changing the parameter will create a new frontend instance for the plotly chart. This resolved various other issues with plotly, but negatively impacted this type of usecase of updating plotly charts. We should probably provide a way via the key parameter to keep the plotly chart identity stable.
Checklist
Summary
Before the upgrade of Streamlit to version 1.35.0 I could persist the camera view of a 3d plotly chart using the argument
uirevision
as a layout parameter. Since version 1.35, whenever I interact with a streamlit widget, the camera is reset.Reproducible Code Example
Steps To Reproduce
Expected Behavior
streamlit-app-2024-06-12-07-06-28.webm
Current Behavior
streamlit-app-2024-06-12-07-06-42.webm
Is this a regression?
Debug info
Additional Information
No response