Skip to content

Commit ada1288

Browse files
committed
Add installation and test instructions
1 parent e7ea3c9 commit ada1288

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

_episodes/02-installation.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,31 @@ julia
107107
```
108108
to start the interactive Julia interpreter. Press `Ctrl+D` to exit.
109109

110-
## Install ESMValTool
110+
## Install the ESMValTool package
111+
112+
To install the ESMValTool package, run
113+
```bash
114+
conda create -n esmvaltool -c conda-forge -c esmvalgroup esmvaltool
115+
```
116+
This will create a new
117+
[Conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
118+
called `esmvaltool`, with the ESMValTool package and all of its dependencies installed in it.
111119

112120
## Test that the installation was successful
113121

122+
To test that the installation was successful, run
123+
```bash
124+
conda activate esmvaltool
125+
```
126+
to activate the conda environment called `esmvaltool`.
127+
Next, run
128+
```bash
129+
esmvaltool --help
130+
```
131+
to display the command line help.
132+
To find the location where the ESMValTool package was installed on your system, run
133+
```bash
134+
python -c 'import esmvaltool; print(esmvaltool.__path__[0])'
135+
```
136+
114137
{% include links.md %}

0 commit comments

Comments
 (0)