From 01fe1a80c88efb2ae3accc14af5edca5f9c930ef Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Sat, 19 Jan 2019 10:52:26 +1100 Subject: [PATCH] Add automatic nbstripout to jupyter notebooks Automatically removes output from notebooks for easier version control. --- .gitattributes | 3 +++ README.md | 1 + environment.yml | 1 + 3 files changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d9d6885 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.ipynb filter=nbstripout + +*.ipynb diff=ipynb diff --git a/README.md b/README.md index 9bf4201..25b8c88 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Jupyter notebooks have been set up to help explore the data. Once you have set u ``` make notebook ``` +Notebooks use nbstripout to remove output before committing. ## Available data Raw, interim and processed data used in this analysis is kept in the `/data/` folder. Data is not tracked in the repository due to size constraints, but stored locally. A mirror is kept of the coastal folder J drive which you can diff --git a/environment.yml b/environment.yml index becc899..49fe9ff 100644 --- a/environment.yml +++ b/environment.yml @@ -16,6 +16,7 @@ dependencies: - matplotlib - line_profiler - nbformat + - nbstripout - notebook - numpy - pandas