Skip to content

Commit

Permalink
examples: Update "How to Run" instructions for solara (#2493)
Browse files Browse the repository at this point in the history
They should probably better synced at some points, but this at least removes the false/outdated information
  • Loading branch information
EwoutH authored Nov 11, 2024
1 parent b550244 commit 5885d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
6 changes: 2 additions & 4 deletions mesa/examples/advanced/epstein_civil_violence/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
15 changes: 2 additions & 13 deletions mesa/examples/basic/virus_on_network/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5885d09

Please sign in to comment.