Skip to content

Move renderer optional imports into function calls #4856

Open

Description

@marthacryan

There are some optional imports in the _renderers.py file in plotly/io that could slow down startup time when the packages aren't present. See #4823 (comment)

Activity

  1. alexcjohnson commented on Nov 9, 2024

    @alexcjohnson
    Collaborator

    To be clear, the big drain is if these packages are installed in the system but are not imported for any purpose other than us reading their version numbers. In that case we should wait to import them until we actually need that version number.

  2. gvwilson commented on Nov 11, 2024

    @gvwilson
    Contributor

    @marthacryan is this small enough that we can sneak it into 6.0 or should it be 6.1? (reluctant to keep adding "little things" to the current release, but if this gives us a performance boost…)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions