From 6d16e792799f5153d8c8c71472465cd5f02bcb8b Mon Sep 17 00:00:00 2001 From: Wang Boyu Date: Sun, 6 Oct 2024 14:12:39 -0400 Subject: [PATCH] add deprecation warning to GeoJupyterViz --- mesa_geo/visualization/geojupyter_viz.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mesa_geo/visualization/geojupyter_viz.py b/mesa_geo/visualization/geojupyter_viz.py index 08599345..87222028 100644 --- a/mesa_geo/visualization/geojupyter_viz.py +++ b/mesa_geo/visualization/geojupyter_viz.py @@ -1,3 +1,5 @@ +import warnings + import matplotlib.pyplot as plt import mesa.experimental.components.matplotlib as components_matplotlib import solara @@ -145,6 +147,12 @@ def GeoJupyterViz( """ + warnings.warn( + "`GeoJupyterViz` is deprecated and will be removed in a future release. Use Mesa's SolaraViz and Mesa-Geo's `make_geospace_leaflet` instead.", + DeprecationWarning, + stacklevel=2, + ) + if name is None: name = model_class.__name__