]> apps.delaporte.us Git - dotfiles.git/commitdiff
Fixup
authorEdward Delaporte <delaport@illinois.edu>
Fri, 16 Feb 2024 13:34:16 +0000 (07:34 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Fri, 16 Feb 2024 13:34:16 +0000 (07:34 -0600)
doc/jupyter.md
files/gitattributes

index 6bd31c7e16f9bdbb692447ffee2652fb2dab5a14..154b635d725acf0af8760b57a3ed99cf6418f2d3 100644 (file)
@@ -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
index 2d71c459a3a9851fd53df5aee9898402e66c4a75..08ed56814b355aacd2116d48ad973492ceb7d488 100644 (file)
@@ -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