Pre commit git hook shall clear notebooks output cells instead of warning about them
As a script that does the job is always more appreciate than a script that warns the developer he did something wrong, I propose that the pre-commit script is performing:
jupyter nbconvert --clear-output --inplace my_notebook_with_an_executed_cell.ipynb