A pre-commit hook to remove all code outputs in all ipython notebook(s) in a given directory
using jupyter nbconvert
utility.
Add the following to your .pre-commit-config.yaml
repos section
repos:
- repo: https://github.com/TWAICE/precommit-nbscrub
rev: 1.0.0
hooks:
- id: ipynb-output-scrub