From: Edward Delaporte Date: Fri, 16 Feb 2024 13:34:16 +0000 (-0600) Subject: Fixup X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/cc29e4ce8e8d5784664ed9391bfd7cfa3b935c85 Fixup --- diff --git a/doc/jupyter.md b/doc/jupyter.md index 6bd31c7..154b635 100644 --- a/doc/jupyter.md +++ b/doc/jupyter.md @@ -4,8 +4,12 @@ # Install ipykernel at user level pip install -U ipykernel +# From https://stackoverflow.com/questions/18734739/using-ipython-jupyter-notebooks-under-version-control + # Tell git to clean data out before committing a notebook -cp ~/dotfiles/files/gitattributes ~/.gitattributes +git config --global core.attributesfile $HOME\dotfiles\files\gitattributes +git config --global filter.dropoutput_ipynb.clean ~\dotfiles\util\jupyter_git_clean.py +git config --global filter.dropoutput_ipynb.smudge cat ``` Did not work diff --git a/files/gitattributes b/files/gitattributes index 2d71c45..08ed568 100644 --- a/files/gitattributes +++ b/files/gitattributes @@ -1 +1 @@ -*.ipynb filter=~/dotfiles/util/jupyter_git_clean.py \ No newline at end of file +*.ipynb filter=$HOME/dotfiles/util/jupyter_git_clean.py \ No newline at end of file