Skip to content

Fix plots using specific Qt5 backend import - #140

Merged
C-Achard merged 1 commit into
cy/preserve-dtypefrom
cy/qtagg-backend
Nov 25, 2026
Merged

C-Achard merged 1 commit into
cy/preserve-dtypefrom
cy/qtagg-backend

Conversation

@C-Achard

@C-Achard C-Achard commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Avoid using old Qt5 API, prefer version-agnostic replacement.

@C-Achard C-Achard added the bug Something isn't working label Nov 25, 2026
@C-Achard
C-Achard requested a balanced review from Copilot November 25, 2026 09:52
@C-Achard C-Achard self-assigned this Nov 25, 2026
@C-Achard
C-Achard added this pull request to stack #138 November 25, 2026 09:52
@C-Achard C-Achard added this to the v0.2.5 milestone Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 C-Achard removed the bug Something isn't working label Nov 25, 2026
@C-Achard
C-Achard marked this pull request as ready for review November 25, 2026 09:56
@C-Achard
C-Achard merged commit 9f6237d into main Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants