Interactive maps and charts are not showing #114
-
Hello, I have a problem with the mesa-geo examples, as when I try to run the examples, only the sliders are shown and the interactive maps and charts are not showing (see the attached image, which is for geo-schelling example). Does anyone have any idea how I can resolve this issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you cloned Mesa-Geo and installed it via pip, could you try to install the local version instead? That is, in you cloned Mesa-Geo directory, run I'm guessing that the examples are looking for the mesa-geo from local folder instead of the pip-installed version, and the Leaflet js/css files are not included in the source file. @rht Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Oh I get it - #109 is merged but not yet released, so there is a mismatch between the source code and the released version. In the source code the examples are using server = mesa.visualization.ModularServer(
GeoSchelling, [map_element, happy_element, happy_chart], "Schelling", model_params
) But this change (#112) is not yet released to PyPI. So to make things in sync, either:
|
Beta Was this translation helpful? Give feedback.
Oh I get it - #109 is merged but not yet released, so there is a mismatch between the source code and the released version.
In the source code the examples are using
ModulerServer
from mesa:But this change (#112) is not yet released to PyPI.
So to make things in sync, either:
pip install .
, orgit checkout v0.3.0
andpip install mesa-geo
.