Skip to content

fix: remove the errors and warnings found by running the notebooks - #205

Merged
petercorke merged 3 commits into
mainfrom
fix/notebook-errors-warnings
Nov 22, 2026
Merged

petercorke merged 3 commits into
mainfrom
fix/notebook-errors-warnings

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

Fixes the errors and deprecation warnings found by running every notebook in docs/notebooks headless after the switch to ipympl (PR 193). Four notebooks change, five lines in all:

  • greyscale-images: imports idisp (from machinevisiontoolbox.base import idisp), which a cell used without importing, and uses the cdf histogram type in place of the deprecated ncdf.
  • gamma: imports idisp in the first cell that uses it.
  • IBVS: the LaTeX label $\|e\|$ is now a raw string, so it no longer raises a SyntaxWarning for an invalid escape sequence.
  • calibration: uses FileCollection in place of the deprecated ImageCollection.

Testing

Ran all 18 notebooks with jupyter nbconvert --execute on this branch, headless, on OpenCV 5.0: no error outputs and no warnings on stderr in any of them. Not run: in the browser with JupyterLite or on Colab, with a live display, or on OpenCV 4.

This change was written with AI assistance (Claude Code) and the diff has been reviewed by the maintainer.

🤖 Generated with Claude Code

petercorke and others added 2 commits November 22, 2026 07:29
…ges notebook

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
gamma imports idisp, IBVS uses a raw string for the LaTeX label, and
calibration uses FileCollection instead of the deprecated ImageCollection.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit af799b1 into main Nov 22, 2026
34 checks passed
@petercorke
petercorke deleted the fix/notebook-errors-warnings branch November 22, 2026 00:25
@github-actions github-actions Bot mentioned this pull request Nov 22, 2026
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.

1 participant