Skip to content

Instantly share code, notes, and snippets.

@suiluj
Last active December 13, 2022 11:58
Show Gist options
  • Save suiluj/fcb0d73c2a5400220015ea7b53f1435f to your computer and use it in GitHub Desktop.
Save suiluj/fcb0d73c2a5400220015ea7b53f1435f to your computer and use it in GitHub Desktop.
nbstriput jupyter notebooks do not commit output logs improved: install globally (to not forget for new repos)

repo: https://github.com/kynan/nbstripout

install in wsl:

sudo apt update
sudo apt install python3-pip
pip3 install --upgrade nbstripout

activate globally (i think prefered)

# when this command fails (because install /home/<user>/.local/bin in not in PATH)
nbstripout --install --global
# you can just use this as alternative:
python3 -m nbstripout --install --global

#than checkout your global .gitconfig
cd
cat .gitconfig

alternative, activate per repo:

# cd into root of repo
nbstripout --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment