Repository navigation
Make reader notebooks visual, concise, and self-contained - #54
Merged
Merged
Conversation
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
Updates the three Colab reader notebooks in
notebooks/to be more visual, concise, and readable on GitHub while staying self-contained in Colab and keeping all technical accuracy intact:02_is_my_model_supported.ipynband03_bring_your_own_cnn.ipynbnow ship with executed offline stdout and lightweight matplotlib PNG figures (57 to 90 KB each), while01_quickstart.ipynbdisplays the validated Sun Moon Lake 3-panel figure right at the top and adds live preview and 3-panel matplotlib plots in Colab.Stop,wait_for, offlineApiTestCaseswitching, export polling, and plotting helpers) into one collapsed form cell per notebook, cutting visible code in03_bring_your_own_cnn.ipynbby 56% (389 to 173 lines).tests/test_notebooks.pywith hygiene checks verifying empty install cells, zero error outputs, valid PNGs under 300 KB, no private values in cell sources or outputs, and zero em-dashes.Base revision
d7e9214(origin/main)Changed files
notebooks/01_quickstart.ipynbnotebooks/02_is_my_model_supported.ipynbnotebooks/03_bring_your_own_cnn.ipynbtests/test_notebooks.pyVerification
Run on the final rebased commit
37d5d2c:PYTHONPATH=. python tools/graph_identity.py --check docs/evidence/l00-golden-graphs.json --resources .: 45 of 45 graphs equal (36 fixture + 9 trained, 0 cloud calls)PYTHONPATH=. python tools/graph_identity.py --check-ext docs/evidence/x00-g1ext-golden-graphs.json: 19 of 19 graphs equalPYTHONPATH=. python tools/block_catalogue.py --check:docs/building-blocks.md is in sync with the blocks' METADATAPYTHONPATH=. python -m pytest -q tests/test_notebooks.py: 26 passed in 5.18sFull offline suite run prior to the 2-commit rebase onto
origin/main(neither upstream commit touchednotebooks/ortests/test_notebooks.py):PYTHONPATH=. python -m pytest -q: 4185 passed, 11 skipped, 190 subtests passed (hosted CI will run the full offline suite on37d5d2c)No live fixtures or Earth Engine calls were run (no library blocks or converter rules changed).
Limitations and open questions
01steps 5 and 8,03step 10) keep empty outputs in this PR because no Earth Engine calls were run here;01embeds the already-validateddocs/images/water_chip_224.pngat the top so GitHub visitors immediately see the result.01_quickstart.ipynbin Colab later and want to save its live PNG outputs into the notebook,tests/test_notebooks.pywill verify they remain clean of private project IDs, paths, and oversized blobs.