Skip to content

Commit b6f3c52

Browse files
committed
Clean up env files
1 parent e795bb1 commit b6f3c52

7 files changed

Lines changed: 26 additions & 197 deletions

File tree

.github/actions/setup-python-env/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
uses: mamba-org/setup-micromamba@v3
2121
with:
2222
micromamba-version: 'latest'
23-
environment-file: ci-environment.yml
23+
environment-file: environment.yml
2424
init-shell: bash
2525
cache-downloads: true
2626
cache-environment: true

.github/workflows/notebook-pr.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ on:
1111
- .github/actions/setup-python-env/action.yaml
1212
- .github/actions/setup-ci-tools/action.yaml
1313
- .github/actions/setup-rendering-deps/action.yaml
14-
- 'ci-environment.yml'
15-
- '**/requirements.txt'
14+
- 'environment.yml'
1615

1716
env:
1817
NB_KERNEL: python

Contributing.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,26 @@ The Course is built off from the `main` branch of this repo. The `main` branch i
66
1. Have a Github accounts and request @WesleyTheGeolien to add you to [ClimateMatchAcademy](https://github.com/orgs/ClimateMatchAcademy/teams) and [Content Creators](https://github.com/orgs/ClimateMatchAcademy/teams/content-creators)
77
1. Have git (a version control system) installed locally, see documnetation [here](https://github.com/git-guides/install-git), if you are not familiar with using a terminal I would recommend installing the Github Desktop Client
88
1. (Optional) Install [VS Code](https://code.visualstudio.com/download) which is your "development environment", it also intergrates nicely with Version Control (git)
9-
1. (Option) Install [miniconda](https://docs.conda.io/en/latest/miniconda.html) or [Anaconda Navigtor](https://docs.anaconda.com/free/navigator/) This is used to create virtual environments and execute your notebooks.
9+
1. (Optional) Install [miniforge](https://github.com/conda-forge/miniforge) to run notebooks locally. This is used to create virtual environments and execute your notebooks.
10+
11+
## Running Notebooks Locally
12+
13+
To run tutorial notebooks on your own machine:
14+
15+
1. Install [miniforge](https://github.com/conda-forge/miniforge) if you haven't already
16+
1. Clone the repo and create the conda environment:
17+
```bash
18+
git clone https://github.com/neuromatch/climate-course-content.git
19+
cd climate-course-content
20+
conda env create -f environment.yml
21+
conda activate climatematch
22+
```
23+
1. Launch Jupyter and open any tutorial notebook:
24+
```bash
25+
jupyter lab
26+
```
27+
28+
The `environment.yml` at the repo root contains all packages needed to run every tutorial.
1029

1130
## Updating Tutorial Notebooks
1231

ci-environment.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

environment.yml

Lines changed: 4 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3,132 +3,62 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
# - python=3.9
7-
- adlfs
8-
- argopy
9-
- awscli
106
- boto3
11-
- bottleneck
127
- cartopy
138
- cdsapi
149
- cfgrib
15-
- ciso # no build for osx-arm64
1610
- climlab
11+
- climlab-rrtmg
1712
- cmocean
18-
- dask-ml
19-
- datashader
20-
- descartes
21-
- earthaccess
22-
- ecco_v4_py # no build for osx-arm64
23-
# - eigen # needed for SDFC
2413
- eofs
25-
- erddapy
2614
- esmf
2715
- esmpy
28-
- fastjmd95
2916
- flox
3017
- fsspec
31-
- gcm_filters
3218
- gcsfs
33-
- gh
34-
- geocube
3519
- geopandas
36-
- geopy
3720
- geoviews-core
38-
- gh-scoped-creds
39-
- git
40-
- git-lfs
4121
- gsw
4222
- h5netcdf
4323
- h5py
4424
- holoviews
45-
- hvplot
4625
- intake
4726
- intake-esm
48-
- intake-geopandas
49-
- intake-stac
5027
- intake-xarray
5128
- ipykernel>=6.21.2
52-
- ipyleaflet
53-
- ipytree
5429
- ipywidgets
55-
- jupyter-panel-proxy
56-
- jupyter-resource-usage
57-
- jupyterlab-git
58-
- kerchunk
59-
- lxml
60-
- lz4
6130
- matplotlib-base
6231
- metpy
63-
- nb_conda_kernels
64-
- nbstripout
6532
- nc-time-axis
6633
- netcdf4
6734
- nltk
68-
- numcodecs
6935
- numpy
70-
- odc-stac
7136
- openpyxl
7237
- pandas
7338
- panel
74-
- parcels
75-
- param
7639
- pip
7740
- plotly
7841
- pooch
79-
- pop-tools
80-
- pyarrow
81-
# - pybind11 # needed for SDFC
82-
- pycamhd
83-
- pydap
84-
- pygeos
85-
- pystac
86-
- pystac-client
8742
- pythia-datasets
88-
- python-blosc
89-
- python-gist
9043
- python-graphviz
9144
- pytorch
92-
- pyworld3 # needed for W2D3
93-
- rasterio
94-
- rechunker
95-
- rio-cogeo
96-
- rioxarray
45+
- pyworld3
9746
- s3fs
98-
- satpy
99-
- scikit-image
10047
- scikit-learn
101-
- scipy<=1.11.4 # for pyleoclim
48+
- scipy
10249
- seaborn
103-
- sparse
104-
- snakeviz
105-
- stackstac
10650
- texttable
107-
- tiledb-py
108-
- timezonefinder
10951
- torchvision
11052
- wordcloud
11153
- xarray==2024.2.0
112-
- xarrayutils
11354
- xarray-datatree
114-
- xarray_leaflet
115-
- xarray-spatial
116-
- xbatcher
117-
- xclim
11855
- xesmf
119-
- xgcm
120-
- xhistogram
12156
- xmip
122-
- xmitgcm
123-
- xpublish
124-
- xrft
125-
- xskillscore
12657
- zarr
12758
- pip:
12859
- afinn
12960
- lipd
13061
- pyleoclim
13162
- "mystatsfunctions @ https://github.com/njleach/mystatsfunctions/archive/main.zip"
132-
# - "SDFC @ https://github.com/yrobink/SDFC/archive/master.zip" # this is not working
133-
# - https://github.com/mptouzel/PyDICE/archive/master.zip # for W2D3 Tutorial 2
63+
- "dicelib @ https://github.com/mptouzel/PyDICE/archive/master.zip"
13464

requirements.txt

Lines changed: 0 additions & 53 deletions
This file was deleted.

tutorials/W2D2_TheSocioeconomicsofClimateChange/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)