Python

Python is a general purpose programming language with stable and high-performinglibraries for numerical computing, data visualization, gridded data, machine learning, and optimization.

Installation

You should install Python (version 3.6 or greater -- not version 2) using miniconda. This provides you with the conda package manager, which you can use to create Python "environments" on your computer.

Getting started

Read the Chapter in Earth and Environmental Data Science

Usage

  • Install packages with conda and specify environment.yml files that list required packages for all code

Additional tools

  • The black formatter keeps code pretty
  • The mypy linter and static type hinting clarify expected inputs and outputs

Digging Deeper


Last update: August 26, 2020