Source code and materials for the tutorial 'Introduction to Simulation: Complex social dynamics in a few lines of code'
The tutorial was held on 11th July, 2016 within the Digital Humanities conference at Krakow, Poland.
We recommend to begin by taking a look at the introductory presentation at doc/slides.pdf. The second step would be to setup the environment and follow the tutorial at doc/DHtutorial.pdf. You can finally check the result against the code found in src/DHworkshop.py and extend the model to solve the challenges defined at the end of slides.pdf
A Python programming environment should be configured in the computer before starting the tutorial. One of the easiest ways is to install the Anaconda suite which will deploy all the needed dependencies.
In addition, you will need a development environment where to type and execute our source code. You can use spyder which is already part of Anaconda:
- Go to: https://www.continuum.io/
- Choose a Python 3.5 windows, linux or osx installer depending on your system (Attention: please make sure you install python 3.5 and not python 2.7).
- Follow the installation instructions
- Launch Spyder from the Anaconda Navigator.
-
doc
- DH2016tutorial.html -> HTML version of the tutorial
- DHtutorial.pdf -> ready-to-print PDF version of the tutorial
- DHtutorial.ipynb -> python-notebook file of the code
- slides.pdf -> Introductory slides on modelling of social dynamics
-
src
- DHworkshop.py -> complete source code