Polish lab notebooks: hide scaffolding, grid_sample exercise, clearer figures#2
Merged
Conversation
… figures - Mark prose/figure/checker cells hide_code=True across all lab notebooks so learners only see the exercise cells. - Rework lab 0 exercise 1 around a single F.grid_sample call (notebook, hints, solution) and add a CI test pinning it to grid_sample semantics, zeros padding, and coordinate gradients. - Clarify lab 0 interactive figures: arrows now stop at dot edges so arrowheads stay visible; bilinear demo shades the active cell, keeps every label inside the card at all slider positions, and reports the in-image weight sum; head demo gets a stable legend plus per-dot k indices; pyramid captions shortened so panels can no longer collide.
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
hide_code=Trueacross all lab notebooks so learners land on the exercise cells, not the scaffolding.bilinear_sample) around a singleF.grid_samplecall — notebook text, hints, andlabs/solutions/lab00.py— and add a CI test pinning the solution togrid_sample(align_corners=False, padding_mode="zeros")semantics and coordinate gradients.kindex matching the fixed legend;Test plan
pytest tests/test_labs.py— 14 passed, 8 skipped (GPU-only).marimo export html labs/00_the_idea.pyexecutes every cell headlessly with no errors; figures render.