docs: use %pip magic in notebooks, add tagline to README - #48
Merged
Conversation
Up to standards ✅🟢 Issues
|
!pip runs the install in a subprocess shell, which can silently install into a different Python environment than the one the notebook kernel is actually running -- %pip magic installs into the active kernel's environment directly. Applies across all 13 notebooks in docs/notebooks/. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
petercorke
force-pushed
the
docs/pip-magic-and-tagline
branch
from
August 3, 2026 00:31
911b720 to
843db36
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.
Summary
!pip install machinevision-toolbox-pythonwith%pip install machinevision-toolbox-pythonacross all 13 notebooks indocs/notebooks/--%pipis the magic-command form that installs into the actual running kernel's environment, where!pipshells out and can silently target a different Python than the notebook is using (particularly relevant for JupyterLite/Pyodide, where a bare!pipdoesn't work at all).<em>OpenCV for humans</em>tagline under the logo inREADME.md.Both were sitting uncommitted on the stalled
opencv5branch, unrelated to that branch's actual (incomplete) OpenCV 5 compatibility work -- pulled out and landed independently so they aren't lost when that branch is retired.Test plan