From 5885d09b4e7edda98fe5be819b69af5cd894d9a1 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Mon, 11 Nov 2024 15:36:49 +0100 Subject: [PATCH] examples: Update "How to Run" instructions for solara (#2493) They should probably better synced at some points, but this at least removes the false/outdated information --- .../advanced/epstein_civil_violence/Readme.md | 6 ++---- mesa/examples/basic/virus_on_network/Readme.md | 15 ++------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/mesa/examples/advanced/epstein_civil_violence/Readme.md b/mesa/examples/advanced/epstein_civil_violence/Readme.md index 84ac40ac6aa..0cb64692f41 100644 --- a/mesa/examples/advanced/epstein_civil_violence/Readme.md +++ b/mesa/examples/advanced/epstein_civil_violence/Readme.md @@ -8,14 +8,12 @@ The model generates mass uprising as self-reinforcing processes: if enough agent ## How to Run -To run the model interactively, run ``EpsteinCivilViolenceServer.py`` in this directory. e.g. +To run the model interactively, in this directory, run the following command ``` - $ python EpsteinCivilViolenceServer.py + $ solara run app.py ``` -Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. - ## Files * ``model.py``: Core model code. diff --git a/mesa/examples/basic/virus_on_network/Readme.md b/mesa/examples/basic/virus_on_network/Readme.md index 484a4c6ffdf..5a1bc7b5430 100644 --- a/mesa/examples/basic/virus_on_network/Readme.md +++ b/mesa/examples/basic/virus_on_network/Readme.md @@ -24,23 +24,12 @@ To install the dependencies use pip and the requirements.txt in this directory. ## How to Run -To run the model interactively, run ``mesa runserver`` in this directory. e.g. +To run the model interactively, in this directory, run the following command ``` - $ mesa runserver + $ solara run app.py ``` -Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. - -or - -Directly run the file ``run.py`` in the terminal. e.g. - -``` - $ python run.py -``` - - ## Files * ``model.py``: Contains the agent class, and the overall model class.