Skip to content

update notebook convention single h1#1626

Open
classiqdor wants to merge 5 commits into
mainfrom
update_notebook_convention__single_h1
Open

update notebook convention single h1#1626
classiqdor wants to merge 5 commits into
mainfrom
update_notebook_convention__single_h1

Conversation

@classiqdor

Copy link
Copy Markdown
Contributor
  • Use a single H1 per notebook (demote section H1s to H2)
  • Normalize heading hierarchy in the single-H1 notebooks
  • Normalize heading hierarchy across more main notebooks
  • Normalize heading hierarchy in sampled main notebooks
  • Normalize heading hierarchy across remaining main notebooks

Each notebook should have exactly one H1 (its title). Demoted the later section-level H1s to H2 across 15 notebooks; in arithmetic_expressions an instructional sentence mis-marked as an H1 became plain prose. Headings inside fenced code blocks were left untouched (they are code comments, not headings) - classiq_chemistry_application and WS_iQuHack_2025_final were flagged only because of such comments and needed no change.
Second pass over the 15 notebooks: fix level skips (e.g. H1->H3, H2->H4) and nesting (sections that were really sub-topics, or sub-topics stranded too deep), changing only heading levels. 6 of the 15 needed changes; the other 9 were already well-structured. Done via the notebook-heading-hierarchy agent; diffs are heading-only.
Heading-hierarchy agent pass over main notebooks with deterministic issues (level skips, missing/duplicate H1): 18 notebooks fixed (9 from the pilot batch + 9 of 10 flagged; vlasov_ampere_qiskit intentionally left without an H1 as a Qiskit-comparison notebook whose title is bold prose). Diffs are heading-level-only.
Heading-hierarchy agent sample over 25 structurally-clean main notebooks (one H1, no skips): 4 had subtle nesting issues a level-skip detector can't see and were fixed (hhl: Generalizations -> H2; fermionic_gaussian: symmetric H3->H4; Qmod_tutorial_part1: false-nested Solution 6a/6b -> H3; synthesis_tutorial: Exercise -> H2). The other 21 were already well-structured.
Full heading-hierarchy agent sweep of the remaining 104 structurally-clean main notebooks. 11 had subtle flatten-vs-nest issues a level-skip detector cannot see and were fixed (e.g. qsvm parallel Example sections, classical_shadow Clifford branch, rectangles_packing '3 steps', grover_graph_coloring oracle nesting). The other 93 were already well-structured. Heading-level-only changes.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant