Skip to content

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

Closed

Description

@Skn0tt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions