Skip to content

Module C notebooks: import pymodaq_gui to have the Qt plotter - #16

Merged
seb5g merged 1 commit into
mainfrom
fix-qt-plotter-module-c
Nov 18, 2026
Merged

seb5g merged 1 commit into
mainfrom
fix-qt-plotter-module-c

Conversation

@seb5g

@seb5g seb5g commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • notebooks/01_data_objects.ipynb: import pymodaq_gui in the given imports. Importing pymodaq_gui registers the qt backend of DataWithAxes.plot (register_plotter in pymodaq_gui/__init__.py); without it line.plot('qt') has no viewer.
  • notebooks/03_analysis.ipynb: the open part says to import pymodaq_gui before .plot('qt').
  • Same change pushed to the corrected notebooks of correction-module-c.

Checks

  • line.plot('qt') returns a Viewer1D after import pymodaq_gui (offscreen, PyMoDAQ 5.3.11).
  • pytest tests/test_notebooks_exercises_module_c.py: 10 passed.

Generated by Claude Code

pymodaq_gui registers the 'qt' backend of DataWithAxes.plot when it is imported
(register_plotter in pymodaq_gui/__init__.py): without it line.plot('qt') has no viewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN833EwRkwYgUKwN8sKq
@seb5g
seb5g merged commit 1892e9e into main Nov 18, 2026
7 checks passed
@seb5g
seb5g deleted the fix-qt-plotter-module-c branch November 18, 2026 12:19
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