Skip to content
scrub notebook outputs as a git pre-commit hook
Find file
Latest commit 0398497 @minrk finish docstring
Failed to load latest commit information.
.gitignore Initial commit add readme
pre-commit finish docstring

Scrubbing IPython Notebook outputs

As a git pre-commit hook.

The goal is to avoid committing outputs to your git repo, if that kind of thing is annoying to you.

To use:

Add pre-commit from this repo as .git/hooks/pre-commit in your repo, and any time you commit a notebook, all outputs will be scrubbed prior to the commit (behaves the same as the "clear all output" button in the notebook UI).

Something went wrong with that request. Please try again.