Skip to content

Don't create or check permissions on .plotly config directory until it a write operation is requested #1076

Description

@jonmmease

Right now we always run the check to make sure read/write permissions are available for the user's .plotly directory. We do it with a call to tools.ensure_local_plotly_files() on the import of plotly/plotly/plotly.py. Becuase of our recursive imports this package is always imported and so we always check for these permissions.

Because of use-cases like that in #1068, where a bunch of jobs are running on a cluster and are just doing offline plotting, we shouldn't do this check unless we're actually using the plotly.plotly package to communicate with the plot.ly servers.

Activity

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions