Repository navigation
Fix plots using specific Qt5 backend import - #140
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Qt-neutral Matplotlib backend update.
No open issues 🎉
What changed in this PR
This PR removes Qt5-specific Matplotlib backend imports from the plotting plugins, allowing them to work with either Qt5 or Qt6.
Changes:
- Switch review, training, and metrics canvases to
backend_qtagg. - Raise the minimum Matplotlib version to 3.5 to support that backend.
- Synchronize the dependency requirement across project metadata, the lockfile, and the ARM64 environment.
| File | Description |
|---|---|
uv.lock |
Updates the recorded Matplotlib minimum to 3.5. |
pyproject.toml |
Requires Matplotlib 3.5 or newer. |
napari_cellseg3d/code_plugins/plugin_review.py |
Uses the Qt-version-neutral plotting backend. |
napari_cellseg3d/code_plugins/plugin_model_training.py |
Uses the Qt-version-neutral training plot backend. |
napari_cellseg3d/code_plugins/plugin_metrics.py |
Uses the Qt-version-neutral metrics plot backend. |
conda/napari_CellSeg3D_ARM64.yml |
Aligns the ARM64 Matplotlib minimum with project requirements. |
Review effort: Balanced
C-Achard
marked this pull request as ready for review
November 25, 2026 09:56
C-Achard
force-pushed
the
cy/qtagg-backend
branch
from
November 25, 2026 09:58
28ca4d6 to
c183c91
Compare
C-Achard
force-pushed
the
cy/qtagg-backend
branch
from
November 25, 2026 12:35
c183c91 to
895149e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avoid using old Qt5 API, prefer version-agnostic replacement.