Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in Documentation #2192

Open
AlABarazi opened this issue Aug 2, 2024 · 9 comments
Open

Problem in Documentation #2192

AlABarazi opened this issue Aug 2, 2024 · 9 comments

Comments

@AlABarazi
Copy link

AlABarazi commented Aug 2, 2024

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
Copy link
Contributor

rht commented Aug 2, 2024

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.

@rht rht mentioned this issue Aug 2, 2024
@AlABarazi
Copy link
Author

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
Copy link
Contributor

rht commented Aug 3, 2024

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
Copy link
Contributor

rht commented Aug 3, 2024

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
Copy link
Contributor

rht commented Aug 3, 2024

I meant *after Important:.

@rht
Copy link
Contributor

rht commented Aug 3, 2024

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
Copy link
Author

AlABarazi commented Aug 3, 2024

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
Copy link
Author

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
Copy link
Contributor

rht commented Aug 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants