A tool such as nb-clean could also be used as a pre-commit hook or in continuous integration. There is this GitHub Action for ensuring clean notebook output too.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to Version Control Jupyter Notebooks | 22 | 27474 | March 8, 2023 | |
| How to version Jupyter notebooks in git without output | 9 | 7247 | August 20, 2024 | |
| Using git hooks to maintain a "cleaned output" notebook branch | 7 | 4324 | April 8, 2021 | |
| Why is GitHub (git) not supported by Jupyter Notebooks | 3 | 561 | July 16, 2025 | |
| Committing ipynb_checkpoints to GitHub | 0 | 1938 | August 30, 2019 |