Repository navigation
feat: run the JupyterLite notebooks with ipympl and follow the plotting recipe - #193
Merged
Merged
Conversation
ipympl is installed in the browser by the bootstrap cell and the site is built with the jupyter-matplotlib extension, so the docs build no longer rewrites %matplotlib ipympl to inline. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…in the browser Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each plot starts with plt.subplots() instead of a bare plt.figure() or reusing the previous figure, the slider callbacks redraw one figure, and block= and plt.show() are gone. Needed now that figures persist under ipympl instead of closing at the end of each cell. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
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.
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.
Switches the notebooks and the JupyterLite site from static
inlinefigures to liveipymplfigures, and brings the notebooks into line with the rvc-ecosystemnotebooks.mdrecipe. Closes #148.ipymplin the browser, and the docs build installs it so the site carries the matplotlib extension. The step that rewrote%matplotlib ipympltoinlineis removed. I tested this on a local JupyterLite build: figures are live and pixel values can be examined by hovering.%matplotlib ipympland callsplt.close("all"), instead of a mix ofinline,widgetandipympl.plt.subplots(), not a bareplt.figure()or the previous cell's figure, which matters now that figures stay open between cells. Unneededplt.figure()calls beforeHistogram.plotare gone. The slider callbacks incamera_animationandimage-motionredraw one figure instead of making a new one each time.block=andplt.show()are removed from the notebooks.Histogramobject'sxandh, and the blob plot calls no longer pass an axes that those methods do not take.I ran 11 of the notebooks headless;
introand the plotting cells now run.greyscale-imagesstill fails on a missingidispimport, which a separate branch fixes. I have not yet checked the rendered result on the real docs site.This change was written with AI assistance (Claude Code) and the diff reviewed by the maintainer.
🤖 Generated with Claude Code