Move renderer optional imports into function calls
Open
Nobody has claimed this yet.
feature
performance
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
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 https://github.com/plotly/plotly.py/pull/4823#discussion_r1834473662
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with plotly/io/_renderers.py and read the discussion linked from pull request #4823. Identify the optional imports involved and the renderer function calls that use them. Done means those imports are moved into the relevant calls without changing renderer behavior or startup handling when optional packages are absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization, performance
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100