Make anywidget an optional dependency?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 44/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- build-system
Research direction
Start in pyproject.toml at the dependency list and locate the anywidget entry, then grep the package for anywidget imports to see which module owns the notebook widget path. Confirm the static PNG/SVG rendering path never imports it, so an install without the extra still exports images. Done means anywidget moves to an optional extras group, the widget import fails with a clear message when absent, and the test suite passes both with and without the extra installed. Note the issue asks a design question, so a maintainer's answer on the intended policy comes first.
Written by the indexing model from the issue text.
Description
Thanks for creating XY I was looking for a lightweight alternative to Matplotlib for generating static plots, and XY caught my attention.
Currently, anywidget is listed as a mandatory dependency in pyproject.toml.
However, it seems to be primarily used for interactive notebook display, while static exports such as PNG and SVG use separate rendering paths.
For users who only use XY for static image generation (e.g. in batch processing or server-side scripts), installing anywidget and its dependencies seems unnecessary.
Would it be possible to make anywidget an optional dependency, required only when using the notebook widget functionality?
Or is there a reason why it needs to be a mandatory dependency?
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 81
- Avg merge
- 7h 57m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from reflex-dev/xy
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
reflex-dev/xy#561 ·
Maintainers usually reply within 1 day
-
Skip finite/log visibility scans when zone maps already prove all-finite on linear axesMay be free again A pull request for this issue was closed without being merged. Openneeds investigate performance
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
reflex-dev/xy#169 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 57/100
reflex-dev/xy#556 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
reflex-dev/xy#552 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
reflex-dev/xy#551 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
daniel-ospina/tortoise#15014 ·
Maintainers usually reply within 1 day
-
area:api p2 product:business triage:active type:feat
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cuadrao-ai/argus#2656 ·
Maintainers usually reply within 1 day
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
good first issue tests
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
yeab7505/tenasig#20 · 1 comment ·
Maintainers usually reply within 1 day