Skip to content

Commit ae14e3a

Browse files
committed
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
1 parent 0d10efb commit ae14e3a

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

mesa/examples/advanced/epstein_civil_violence/Readme.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ The model generates mass uprising as self-reinforcing processes: if enough agent
88

99
## How to Run
1010

11-
To run the model interactively, run ``EpsteinCivilViolenceServer.py`` in this directory. e.g.
11+
To run the model interactively, in this directory, run the following command
1212

1313
```
14-
$ python EpsteinCivilViolenceServer.py
14+
$ solara run app.py
1515
```
1616

17-
Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run.
18-
1917
## Files
2018

2119
* ``model.py``: Core model code.

mesa/examples/basic/virus_on_network/Readme.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,12 @@ To install the dependencies use pip and the requirements.txt in this directory.
2424

2525
## How to Run
2626

27-
To run the model interactively, run ``mesa runserver`` in this directory. e.g.
27+
To run the model interactively, in this directory, run the following command
2828

2929
```
30-
$ mesa runserver
30+
$ solara run app.py
3131
```
3232

33-
Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run.
34-
35-
or
36-
37-
Directly run the file ``run.py`` in the terminal. e.g.
38-
39-
```
40-
$ python run.py
41-
```
42-
43-
4433
## Files
4534

4635
* ``model.py``: Contains the agent class, and the overall model class.

0 commit comments

Comments
 (0)