Skip to content

Plotly Diagram file is non-deterministic due to random UUID #3449

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

Closed
Skn0tt opened this issue Nov 2, 2021 · 0 comments · Fixed by #3487
Closed

Plotly Diagram file is non-deterministic due to random UUID #3449

Skn0tt opened this issue Nov 2, 2021 · 0 comments · Fixed by #3487

Comments

@Skn0tt
Copy link
Contributor

Skn0tt commented Nov 2, 2021

We use Plotly in conjunction with DVC, where DVC tracks the html file that Plotly generates as the output of one of our stages. DVC does some basic equality checking on the output files based on checksums. If a stage is run, and the Plotly-generated HTML changes its contents, we'll see that reflected in a different checksum in dvc.lock.

We found that Plotly will generate two different files, even if the input is identical. This is likely caused by this line, which is later emitted into the HTML:

plotdivid = str(uuid.uuid4())

What are the reasons that lead to using a random ID? Could this potentially be some non-changing value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant