Skip to content

Commit b2ef608

Browse files
committed
Set JupyterViz as stable
1 parent 63d02a6 commit b2ef608

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

docs/tutorials/visualization_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
},
120120
"outputs": [],
121121
"source": [
122-
"from mesa.experimental import JupyterViz\n",
122+
"from mesa.visualization import JupyterViz\n",
123123
"\n",
124124
"page = JupyterViz(\n",
125125
" BoltzmannWealthModel,\n",

mesa/experimental/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from .jupyter_viz import JupyterViz, make_text, Slider # noqa
21
from mesa.experimental import cell_space
32

43

5-
__all__ = ["JupyterViz", "make_text", "Slider", "cell_space"]
4+
__all__ = ["cell_space"]
File renamed without changes.

mesa/visualization/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .jupyter_viz import JupyterViz, make_text, Slider
2+
3+
4+
__all__ = ["JupyterViz", "make_text", "Slider"]
File renamed without changes.

mesa/experimental/jupyter_viz.py renamed to mesa/visualization/jupyter_viz.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import solara
77
from solara.alias import rv
88

9-
import mesa.experimental.components.altair as components_altair
10-
import mesa.experimental.components.matplotlib as components_matplotlib
11-
from mesa.experimental.UserParam import Slider
9+
import mesa.visualization.components.altair as components_altair
10+
import mesa.visualization.components.matplotlib as components_matplotlib
11+
from mesa.visualization.UserParam import Slider
1212

1313
# Avoid interactive backend
1414
plt.switch_backend("agg")

tests/test_jupyter_viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import solara
66

77
import mesa
8-
from mesa.experimental.jupyter_viz import JupyterViz, Slider, UserInputs
8+
from mesa.visualization.jupyter_viz import JupyterViz, Slider, UserInputs
99

1010

1111
class TestMakeUserInput(unittest.TestCase):
@@ -84,7 +84,7 @@ def Test(user_params):
8484

8585
def test_call_space_drawer(mocker):
8686
mock_space_matplotlib = mocker.patch(
87-
"mesa.experimental.components.matplotlib.SpaceMatplotlib"
87+
"mesa.visualization.components.matplotlib.SpaceMatplotlib"
8888
)
8989

9090
model = mesa.Model()

0 commit comments

Comments
 (0)