To get the most out of this workshop, please bring a laptop computer with Python installed.
We will use Miniforge to install Python and all required packages in a clean, reproducible environment.
The following instructions will guide you through installing Miniforge and setting up a wahgs2026 environment for the workshop.
-
Go to the Miniforge website and download the installer for your platform:
https://github.com/conda-forge/miniforge -
Run the installer program you downloaded.
- On Windows, the installer is typically named:
Miniforge3-Windows-x86_64.exe
- On Windows, the installer is typically named:
-
Click through the installer options:
- Select “Just Me (recommended)” if prompted
- Default options are fine
- Important: Choose an installation path without spaces or special characters
-
After installation:
- On Windows, you should see Miniforge Prompt in the Start menu
- On macOS/Linux, open a terminal
We will use an environment file to install Python and all required packages for the workshop.
-
Open a text editor (e.g., Notepad, Notepad++, VS Code)
-
Create a file named:
environment.yml. Windows users: Make sure the file is not saved asenvironment.yml.txt. -
Paste the following contents into the file:
name: wahgs2026
channels:
- conda-forge
- defaults
dependencies:
- python=3.12
- flopy
- jupyterlab
- scipy
- geopandas
- rasterio
- xarray
- rioxarray
- rasterstats
- pyshp
- netcdf4
- contextily
- git- Save this file somewhere easy to access (e.g., your home directory)
-
Open the Miniforge Prompt (Windows) or a terminal (macOS/Linux)
-
Run the following command to create the environment. Be sure to replace
<path-to-file>with the location where you saved the file.
conda env create --file <path-to-file>/environment.yml
- Activate the environment:
conda activate wahgs2026
- Your prompt should now look something like:
(wahgs2026) C:\Users\YourName>`
To confirm everything is working:
jupyter lab
This should open JupyterLab in your default web browser.
If it opens successfully in a web browser, you are ready for the workshop. If it does not open successfully, contact the course instructor.