Skip to content

Commit 3a3593d

Browse files
committed
adding conda environment setup information.
1 parent 35b1876 commit 3a3593d

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

environment.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: python-ecology-lesson
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.8
7+
- jupyter
8+
- pandas
9+
- numpy
10+
- matplotlib
11+
- plotnine

setup.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,25 @@ conda install -c conda-forge plotnine
169169
~~~
170170
{: .language-bash}
171171
172+
## Required packages: Installing with environment file
173+
Download the
174+
[environment.yml](https://raw.githubusercontent.com/datacarpentry/python-ecology-lesson/gh-pages/environment.yml)
175+
file by right-clicking the link and selecting save as.
176+
In the directory where you downloaded the environment.yml file run:
177+
178+
~~~
179+
conda env create -f environment.yml
180+
~~~
181+
{: .language-bash}
182+
183+
Activate the new environment with:
184+
~~~
185+
conda activate python-ecology-lesson
186+
~~~
187+
{: .language-bash}
188+
189+
For more information on environment files, see the conda documentation for
190+
[creating an environment from an environment.yml file](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file).
172191
173192
## Launch a Jupyter notebook
174193

0 commit comments

Comments
 (0)