Tutorials
These tutorials will guide you through the main features of Starsim. Each tutorial is interactive and includes executable code examples.
A quick introduction to the Starsim framework.
How to build your first simulation.
Implementing demographics: births, deaths, and population structure.
How to implement disease dynamics.
How diseases spread between agents: networks and mixing pools.
It’s not all doom and gloom: implementing interventions to save lives.
Note
You can download these tutorials as Jupyter notebooks to run them locally. Look for the download button at the top of each tutorial.
Running tutorials locally
To run these tutorials locally:
- Clone the Starsim repository
- Install Starsim and its dependencies
- Navigate to the
docs/tutorials
directory - Launch Jupyter:
jupyter notebook