If you don't need to "commit" the output, you can just use nbconvert[0]:
jupyter nbconvert --clear-output --inplace my_notebook.ipynb
So you can use git as usual, like for code.nbstripout[0] does that and installs a pre-commit hook
If you don't need to "commit" the output, you can just use nbconvert[0]:
jupyter nbconvert --clear-output --inplace my_notebook.ipynb
So you can use git as usual, like for code.