From 0f682891dac2909b1511a76c65231e5c2618e5bf Mon Sep 17 00:00:00 2001 From: rht Date: Wed, 14 Aug 2024 05:08:49 -0400 Subject: [PATCH] breaking: Add dependencies argument to custom space_drawer --- mesa/visualization/solara_viz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesa/visualization/solara_viz.py b/mesa/visualization/solara_viz.py index 4f1598846e5..fba73207982 100644 --- a/mesa/visualization/solara_viz.py +++ b/mesa/visualization/solara_viz.py @@ -70,7 +70,7 @@ def Card( ) elif space_drawer: # if specified, draw agent space with an alternate renderer - space_drawer(model, agent_portrayal) + space_drawer(model, agent_portrayal, dependencies=dependencies) elif "Measure" in layout_type: rv.CardTitle(children=["Measure"]) measure = measures[layout_type["Measure"]]