Skip to content

Commit

Permalink
add deprecation warning to GeoJupyterViz
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-boyu committed Oct 6, 2024
1 parent 3c4f884 commit 6d16e79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mesa_geo/visualization/geojupyter_viz.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import matplotlib.pyplot as plt
import mesa.experimental.components.matplotlib as components_matplotlib
import solara
Expand Down Expand Up @@ -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__

Expand Down

0 comments on commit 6d16e79

Please sign in to comment.