Repository navigation
fix(pedagogy): move exercises before ending sections (44 notebooks) - #330
Merged
Merged
Conversation
Structural corruption from PR #303 (git merge -X theirs) placed exercise cells AFTER conclusion/navigation sections in 44 notebooks. Students would reach the end of the notebook without seeing the exercises. Changes: - Move exercise cells before the first ending marker (conclusion/nav/synthesis) - Remove duplicate navigation/conclusion cells at the end - Reset execution_count and clear outputs for moved code cells Scope: 44 notebooks fixed across Search (Part1, Part2-CSP, Applications) and Sudoku. All exercise cells now appear before the notebook's ending section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
Author
Note: 3 notebooks with complex remaining corruptionThe automated fix handles the most common pattern (exercises placed after the last ending marker). Three notebooks have more complex interleaved corruption from the merge that requires manual review:
These 3 are not blocking for EPITA — the exercises are accessible — but the reading flow is disrupted. Manual review recommended. |
This was referenced Apr 20, 2026
jsboige
added a commit
that referenced
this pull request
Apr 21, 2026
…#403) Bug reporte par un etudiant pendant le cours EPITA du 21/04/2026 : le notebook CSP-1-Fundamentals est structurellement casse. Problemes identifies : 1. BLOC DUPLIQUE (9 cellules) : la Section 7 (Recapitulatif + Exercices 1-3 + "Et ensuite" + Exercice 4) apparaissait DEUX fois : une fois entre la Section 4 et la Section 5, puis de nouveau (correctement) avant la Conclusion. Les deux blocs partageaient les MEMES cell IDs (2cd7141e, 3586d6ec, bfd0af8f, 43775d9c, 08fcbcc6, 63846a3f, bcbf03dd, 46d47e13, fr0whufd), trahissant un copy-paste accidentel. 2. SECTION 4.3 MAL PLACEE : "### 4.3 Visualisation du processus de backtracking" apparaissait APRES le header "## 5. Heuristiques", donc logiquement dans la Section 5 alors que son contenu appartient a la Section 4. 3. CODE ORPHELIN (exercice 4 Sudoku code dup id=suhmqzd7qko) : une 10eme cellule du bloc duplique, laissee apres suppression partielle. Fix applique : - Suppression du bloc duplique (9 cellules) apres Section 4 - Suppression du code orphelin Exercice 4 dup (1 cellule) - Deplacement de Section 4.3 (5 cellules) AVANT le header Section 5 Structure finale (71 cellules) conforme au plan pedagogique : 1. Introduction 2. Formalisation CSP 3. Exemple coloration Australie 4. Backtracking (4.1 principe, 4.2 trace, 4.3 visualisation) 5. Heuristiques (5.1 MRV, 5.2 LCV) 6. Bibliotheque python-constraint 7. Recapitulatif et exercices (4 exercices) Conclusion Verification : 0 cellule avec IDs dupliques (avant : 10 duplicats). Tous les autres notebooks CSP-2 a CSP-9 scannes : aucun bug similaire. Origine probable : merge accidentel lors de PR #330 (fix pedagogy move exercises before ending sections, 44 notebooks) ou suivante. Etudiants impactes : ~80 eleves EPITA SCIA 2026 en cours pendant ce matin (21/04/2026). Bug remonte oralement avant la 2eme fournee de TP. Refs CLAUDE.md 2026-04-20 : non-detection = review superficielle lors de PR #330. Tous les notebooks enrichis a cette epoque meritent un scan de coherence structurelle (duplicate section headers). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7 tasks done
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
PR #303 (
git merge -X theirs, commit ce90797) corrupted 44 notebooks by placing exercise cells AFTER conclusion/navigation/synthesis sections. Students would reach the end of the notebook without seeing any exercises.What this PR fixes
execution_countand clears outputs for moved code cellsScope
Follows PR #327 and #329
<details>solution cells (55 cells, 20 notebooks)Verification
A Python script (
notebook-cleanup-plan-b.py) was used to detect and fix the corruption:## Conclusion,## Synthèse,Et ensuite?, navigation cells (after midpoint)Exercice,TODO,A COMPLETER,NotImplementedError,NotImplementedException### Synthèsein interpretation sections, navigation headersTest plan
outputs: [])🤖 Generated with Claude Code