The code can be run online using this link: https://share.streamlit.io/alex180500/schelling-model/main/schelling-model.py
This repository is the base of a Streamlit Python applet made as a small project for the Computational Physics with Laboratory course held in Università degli Studi di Palermo by professor Grazia Cottone and professor Salvatore Miccichè.
Special thanks to professor Salvatore Miccichè for the lesson on Agent-Based Models.
All of the code is distributed under the MIT License and is free to use for any purpose, please credit me if possible if you want to use it.
The code is based on this amazing article by Adil Moujahid. Another important reference is the amazing Streamlit documentation.
If you want to run the code locally make sure to have the following packages:
- Python 3
- Matplotlib
- Numpy
- Streamlit