Technical requirements
We will be using a variety of external packages besides the standard Python library:
- HADES, a framework for creating simulations in Python (https://ki-oss.github.io/hades/)
- Solara, a library that lets you use and build data-focused web apps (https://solara.dev)
- Dask, a library for parallel and distributed computing (https://www.dask.org/)
As usual the source code is available in the relevant chapter folder of the Github repo (https://github.com/PacktPublishing/Asynchronous-Programming-in-Python/tree/main/Chapter10).
In addition, for our simulation example we are going to rely on a large language model (LLM) to take some decisions. You can use a container manager like Docker to run local models through Ollama (https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image) – a specific script is included in the chapter folder to run Ollama with or without GPU support – or use an external provider...