Repository navigation
docs(notebooks): the first cell is hand-written markdown again, and cell ids are committed - #859
Merged
Merged
Conversation
…ell ids are committed The generated header is removed: the first cell should reflect the notebook, as in MVTB. The logo is an absolute URL so that Colab shows it. sync_bootstrap.py gives every cell an id, so that VS Code no longer changes a notebook when it opens it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
petercorke
enabled auto-merge (squash)
October 19, 2026 20:13
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 8 high |
🟢 Metrics 12 complexity · -2 duplication
Metric Results Complexity 12 Duplication -2
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.
…tes notebooks as nbformat does Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #859 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 146 146
Lines 16867 16867
=====================================
Misses 16867 16867 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Undoes the generated header of #850 and fixes the cell ids. No change to the toolbox. The notebooks are about to be reviewed and edited by hand, and a generated first cell would be overwritten, or fail
--check, on any edit; the first cell should reflect the notebook's content, as in MVTB.What changes
rtb_headermetadata are removed; each notebook keeps its current header text, including the "Modernised 2026-10-19" note, as ordinary markdown. The logo is an absolute GitHub URL (as in MVTB), because Colab fetches only the one.ipynbfile and showed a broken image forfigs/....sync_bootstrap.pynow gives every cell anid(nbformat 4.5), and--checkreports a missing one. Until now VS Code added ids as soon as a notebook was opened, so opening any notebook changed it.clear_outputs.pynow also resets the metadata an editor writes (the 13 notebooks had seven different kernel names and versions, and leftovertoc,varInspector,widgets,interpreterandvscodeblocks) to a canonical kernel and language, keeping only our ownrtb_bootstrapkey, and writes the file exactly as nbformat does (sorted keys), which VS Code does too: opening and saving a notebook no longer changes it. This is a one-time reordering of keys in every notebook.docs/notebooks/README.mdsays how to edit a notebook: clear the outputs before committing, and runsync_bootstrap.pyonly after changing the bootstrap template or a notebook'srtb_bootstrapmetadata.docs.ymlchecks both.18 tests in
tests/test_notebook_bootstrap.pypass, and both--checkscripts are clean. Written with AI assistance (Claude Code).🤖 Generated with Claude Code