Skip to content

Instantly share code, notes, and snippets.

View blackw1ng's full-sized avatar

Sebastian Werner blackw1ng

  • Munich, Germany
View GitHub Profile
@blackw1ng
blackw1ng / ipynb_drop_output.py
Last active August 16, 2018 13:57 — forked from snitramodranoel/ ipython_notebook_in_git.md
Keeping IPython notebooks under Git version control
#!/usr/bin/env python
"""
Suppress output and prompt numbers in git version control.
This script will tell git to ignore prompt numbers and cell output
when looking at ipynb files if their metadata contains:
"git" : { "suppress_output" : true }