Introduction to Agent-Based Modelling (ABM) using the Mesa library in Python (2025)

In this tutorial, we’ll explore the Mesa library in Python for agent-based modeling. Whether you’re just starting out or need a quick refresher, we’ll kick things off with a brief review of Python basics before jumping into how Mesa works. By the end, you’ll have a solid grasp of Mesa and be ready to start building your own agent-based model. 00:04:32 Installing Mesa 00:05:05 Recap on classes 00:19:56 Setting up the model 00:35:24 Adding agents actions and step method 00:51:43 Agents and Model behaviour 01:05:29 Mesa spaces 01:10:19 Moving the agents 01:20:56 Collecting data 01:31:55 Visualization 01:34:21 Batch Runner 01:48:33 Wrapping up About the presenter: LinkedIn:   / omar-kammouh   Feel free to contact me via email: [email protected] Tutorial on how to setup your python environment using Anaconda, VS code, and Pycharm:    • Tutorial on how to setup your python envir...   Mesa website: https://mesa.readthedocs.io/latest/ge...