projectmesa / mesa

Mesa is an open-source Python library for agent-based modeling, ideal for simulating complex systems and exploring emergent behaviors.
https://mesa.readthedocs.io
Other
2.38k stars 862 forks source link

Problem in Documentation #2192

Open AlABarazi opened 1 month ago

AlABarazi commented 1 month ago

The visualizations on this link is not working :
https://mesa.readthedocs.io/en/stable/tutorials/visualization_tutorial.html

And the documentation is missing many APIs related to visualization library.

rht commented 1 month ago

There is not enough information of which Mesa version you used. It should work with the latest release, but doesn't work with the Git version because JupyterViz has been moved from mesa.experimental to mesa.visualization.

AlABarazi commented 1 month ago

Thanks for the clarification. JupyterViz in the link that I shared with you is not working . The run button is not working, and the reset button is not working. Only the slider is working. Is this intentional to share clickable buttons that do nothing? This is tested on safari, desktop opera, and mobile browser (android Opera ).

rht commented 1 month ago

If you want the unreleased tutorial, check out https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html instead. (notice that it's "latest", not "stable" in the URL)

rht commented 1 month ago

It's not meant to be clickable. If you want an interactive version, you have to run the tutorial in Google Colab. Please read the first list just before the word "Important:".

rht commented 1 month ago

I meant *after Important:.

rht commented 1 month ago

I tested. The unreleased tutorial doesn't work because it's installing release Mesa. As such, can you install release Mesa instead of from Git?

AlABarazi commented 1 month ago

I think I already have the released MESA on my system (poetry add mesa). I will check the exact version. I noticed that there is an issue with the responsiveness of visualization/UI. These are screen shots for the UI from my mobile which is not able to recognize my device and render the components properly.

Screenshot_20240803-121028

AlABarazi commented 1 month ago

Now there are error when I open the tutorial from my mobile (opera browser) [Open Browser Console for more detailed log - Double click to close this message] Failed to load model class 'HtmlModel' from module 'jupyter-vuetify' Error: Script error for "jupyter-vue", needed by: jupyter-vuetify http://requirejs.org/docs/errors.html#scripterror at makeError (https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js:1:1067) at HTMLScriptElement.onScriptError (https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js:1:13218)

rht commented 1 month ago

Have you tried a different mobile browser, e.g. Firefox/Chrome? Is it specific to Opera?