strip output from Jupyter and IPython notebooks
copied from cf-post-staging / nbstripoutconda install conda-forge::nbstripoutconda install conda-forge/label/broken::nbstripoutconda install conda-forge/label/cf201901::nbstripoutconda install conda-forge/label/cf202003::nbstripoutconda install conda-forge/label/gcc7::nbstripout
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the Clear All Output command in the
notebook UI.