You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move renderer optional imports into function calls #4856
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)
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.
@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…)
Activity
alexcjohnson commentedon Nov 9, 2024
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.
gvwilson commentedon Nov 11, 2024
@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…)