-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go.Figure clobbers user uids #1512
Comments
In fact for |
Thanks for tracking that down @alexcjohnson. The reason that the trace uid was being set on the Python side was to support the needs of But, I think we should be able to work out a way to only set the UID when traces are added to a |
Ah, yes - would be great if only Even for |
Alright if we take care of this for v4 (a couple of months out)? I think there is a small chance that this could be a breaking change for some applications built on top of plotly.py.
I think I was concerned that things would fail badly if a user ended up adding multiple traces with the same not-unique |
default usage of
go.Figure
does not allow users to enteruid
for traces. That seems to be because it callsself._data_validator = DataValidator(set_uid=True)
that triggers:plotly.py/_plotly_utils/basevalidators.py
Lines 2359 to 2361 in bb5c998
Can we override
uid
only if it wasn't set by the user?Discovered while debugging https://community.plot.ly/t/preserving-ui-state-like-zoom-in-dcc-graph/15793/34
The text was updated successfully, but these errors were encountered: