From be3542dbd6dc7a0444a5298b24edab9a1798c5e5 Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Mon, 6 Nov 2017 15:43:58 -0500 Subject: [PATCH 1/4] Fix import --- weather/key/04-custom_plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather/key/04-custom_plotting.py b/weather/key/04-custom_plotting.py index b19ce56..d10ed97 100644 --- a/weather/key/04-custom_plotting.py +++ b/weather/key/04-custom_plotting.py @@ -1,5 +1,5 @@ import matplotlib.pyplot as plt -from pddc_helpers import load_bwi_data, aggregate_by_month +from w_helpers import load_bwi_data, aggregate_by_month plt.ion() bwi = load_bwi_data() From ee857cc685c0b4cea9e25b422fba38fd3c50a23c Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Mon, 6 Nov 2017 15:46:17 -0500 Subject: [PATCH 2/4] Added conda environment config --- environment.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 environment.yml diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..6e065c0 --- /dev/null +++ b/environment.yml @@ -0,0 +1,11 @@ +name: mpl-tutorial +channels: +- anaconda +- defaults +dependencies: +- matplotlib +- pandas +- pytables +- h5py +- ipython +- python=3.6 From 121bb9e88d56e5faa05438025cb9f1d416eac78e Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Mon, 6 Nov 2017 16:22:01 -0500 Subject: [PATCH 3/4] Added scipy --- environment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 6e065c0..b0c3f3a 100644 --- a/environment.yml +++ b/environment.yml @@ -3,9 +3,10 @@ channels: - anaconda - defaults dependencies: +- h5py +- ipython - matplotlib - pandas - pytables -- h5py -- ipython +- scipy - python=3.6 From 24ecfb7d12c8ef677331ffff78b9e2a3e2b0f8db Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Mon, 6 Nov 2017 16:24:28 -0500 Subject: [PATCH 4/4] Add option to use environment file --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fa3450..d9b7b69 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ To set up an enviroment for this tutorial use - $ conda create -n mpl-tutorial -c conda-forge -c conda-forge/label/rc 'matplotlib>1.6' pandas pytables ipython python=3 + $ conda env create -f environment.yml + +or + + $ conda create -n mpl_tutorial -c anaconda matplotlib pandas pytables h5py ipython scipy python=3.6 + for *nix