Skip to content
🤖 Clean your notebook outputs with every commit!
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

strip output and metadata from your .ipynb as a git filter using nbconvert to remove the a notebook's output on each commit to not clutter up your Git history.

  • + No external dependencies, if you have Jupyter notebook installed you will have nbconvert
  • - A bit slow, ~150 ms
  • - need to make sure that every contributor uses it (otherwise it will result in conflicts)

Usage, install and forget

Option 1 (fast)

Run wget && echo "*.ipynb filter=ipynb_filter" >> .gitattributes && python

Option 2 (manual, slow)

  1. Copy into your project root
  2. Add the following line to your .gitattributes: *.ipynb filter=ipynb_filter
  3. run python
You can’t perform that action at this time.