Skip to content

Commit 6b79f2f

Browse files
committed
Clean notebook output
1 parent 506c491 commit 6b79f2f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Strip notebook output for diffs and during staging
2+
# Download with 'pip install nbstripout'
3+
# See: https://github.com/kynan/nbstripout
4+
*.ipynb filter=nbstripout
5+
*.ipynb diff=ipynb

docs/.gitconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[diff "ipynb"]
2+
textconv = nbstripout -t
3+
[filter "nbstripout"]
4+
clean = "f() { echo >&2 \"clean: nbstripout $1\"; nbstripout; }; f %f"
5+
smudge = "f() { echo >&2 \"smudge: cat $1\"; cat; }; f %f"
6+
required = true

0 commit comments

Comments
 (0)