Skip to main content
Ctrl+K
Scientific Programming - Home Scientific Programming - Home
  • Welcome

Introduction

  • Syllabus
  • External resources

Unit 01 - Getting started

  • Installing Python on your computer
    • For Windows users: the difference between the command prompt, the miniforge prompt, and the Python interpreter
    • For Linux/macOS users: the terminal, the miniforge installation, and the Python interpreter
  • Running our first script
  • Installing Python packages
  • Scientific development environments: IPython and Positron

Unit 02 - Python basics

  • Language fundamentals
  • Strings and string formatting
  • Getting started with Git (in Positron)
  • Assignment 02

Unit 03 - Variables scopes, modules, and file paths

  • Modules, import mechanism, namespaces, and variable scopes
  • File paths
  • Assignment #03

Unit 04 - Numbers in Python

  • Why do we need NumPy?
  • Number representation in computers
  • Assignment #04

Unit 05 - Scientific Python

  • Arrays in NumPy: indexing, ufuncs, broadcasting
  • The scientific Python stack
  • Assignment #05

Unit 06 - Good practice, getting help, and AI

  • Good practices, programming style and conventions
  • Tips and tricks
  • Assignment #06

Intermezzo

  • Intermezzo: ERA5 and xarray
  • Exercise - Midterm revision

Unit 07 - Code documentation

  • Documenting your code

Unit 08 - Testing

  • Errors, Exceptions and Warnings
  • Testing your code
  • Assignment #08: Exceptions and Testing

Unit 09 - Python Packages and Semester project

  • Structure of a Python package
  • Repository
  • Open issue

Index

By Fabien Maussion, Manuela Lehner

These lecture notes and exercises are licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.
© Copyright 2018-2026.