From cc29e4ce8e8d5784664ed9391bfd7cfa3b935c85 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Fri, 16 Feb 2024 07:34:16 -0600 Subject: [PATCH] Fixup --- doc/jupyter.md | 6 +++++- files/gitattributes | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.3