Skip to content

Instantly share code, notes, and snippets.

@enorms
Created September 24, 2021 18:59
Show Gist options
  • Save enorms/061514575fa586b2e846c50fb98af2ba to your computer and use it in GitHub Desktop.
Save enorms/061514575fa586b2e846c50fb98af2ba to your computer and use it in GitHub Desktop.
# pip install
nbstripout
# .git/config
[include]
path = ../.git.config/repo.config
# .git.config/repo.config
[filter "nbstripout"]
clean = venv/bin/nbstripout
smudge = cat
required = true
[diff "ipynb"]
textconv = venv/bin/nbstripout -t
# references
# track config settings: https://stackoverflow.com/a/54198552/2894738
# https://github.com/kynan/nbstripout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment