Skip to content

Commit

Permalink
Move jupyter_viz to core Mesa repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rht authored and Corvince committed Jul 20, 2023
1 parent 428c900 commit 998ed61
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 237 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ $ pip install -U -e git+https://github.com/projectmesa/mesa-examples#egg=mesa-mo
from mesa_models.boltzmann_wealth_model.model import BoltzmannWealthModel
```
You can see the available models at [setup.cfg](https://github.com/projectmesa/mesa-examples/blob/main/setup.cfg).

The package also contains experimental code, which will be in the main Mesa package once they have stabilized.
You can see an example of the `JupyterViz` function in the experimental boltzmann wealth model's [app.py](https://github.com/projectmesa/mesa-examples/blob/main/examples/boltzmann_wealth_model_experimental/app.py).
2 changes: 1 addition & 1 deletion examples/boltzmann_wealth_model_experimental/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mesa_models.experimental import JupyterViz
from mesa.experimental import JupyterViz
from model import BoltzmannWealthModel


Expand Down
2 changes: 1 addition & 1 deletion examples/schelling_experimental/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mesa_models.experimental import JupyterViz, make_text
from mesa.experimental import JupyterViz, make_text
from model import Schelling


Expand Down
2 changes: 1 addition & 1 deletion examples/sugarscape_g1mt/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import solara
from matplotlib.figure import Figure
from mesa_models.experimental import JupyterViz
from mesa.experimental import JupyterViz
from sugarscape_g1mt.model import SugarscapeG1mt
from sugarscape_g1mt.resource_agents import Sugar
from sugarscape_g1mt.trader_agents import Trader
Expand Down
1 change: 0 additions & 1 deletion experimental/__init__.py

This file was deleted.

225 changes: 0 additions & 225 deletions experimental/jupyter_viz.py

This file was deleted.

4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ authors = [
license = {file = "LICENSE"}
readme = "README.rst"
requires-python = ">=3.8"
dependencies = [
"solara",
]


[build-system]
requires = [
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ package_dir =
mesa_models.schelling = examples/schelling
mesa_models.epstein_civil_violence = examples/epstein_civil_violence/epstein_civil_violence
mesa_models.wolf_sheep = examples/wolf_sheep/wolf_sheep
mesa_models.experimental = experimental

0 comments on commit 998ed61

Please sign in to comment.