-
Notifications
You must be signed in to change notification settings - Fork 847
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
Barebone examples without using the tornado server #693
Comments
I think the examples are really more to (literally) show off models. How to run a model without visualization is also already covered in the beginning of the introductory tutorial. Given that is boils down to Please also take a look at the bank reserves example. It showcases a batch run (without any visualization involved). We also have several examples that include jupyter notebooks, which run without the tornado server. But maybe you can elaborate a bit more on the following points, I am not sure I get them correctly:
How does putting everything into one file (again, see intro tutorial for that) showcase modularity? And I have no experience with repl.it, but it seems to support multiple files? All that said I think most (probably all) mesa developers are always happy to include more examples, so please feel free to submit. |
I wasn't aware of the introductory tutorial.
Since it is a new example, it is not in the list at https://github.com/projectmesa/mesa/blob/master/examples/Readme.md. And the batch_runner description comes after I have assumed that the example requires a server to run.
To run a .ipynb would still require a server to be run. Although some people might find jupyter notebooks more intuitive to run than a .py on IDLE. What I meant by 'modularity' is that the library can be used piecemeal without the visualization server, and that it can be concise enough to be described fully in 1 file. |
Ah, that probably explains your confusion.
Oh good catch, nice to know!
Sorry, I wrote that a bit confusing. What I meant was that inside the notebooks (which can easily be viewed on e.g. GitHub) users can see how to run the models without a server.
I disagree that this needs to be mentioned explicitly since this is true for everything written in Python. But lets hear what others think about this |
I understand what @rht is getting at and see the value. I just don't know how to do this organizations in docs or examples to demonstrate this without making it super confusing on top of the basic model and the advanced models we already have. thoughts? |
One easy way to do this would be to simply add a |
Though, virtually all the existing example models require a grid representation. One option is to find a classic example that doesn't require grid.
The other option is to somehow print an ASCII grid (possibly with colors and custom unicode to represent an agent in a cell) as another visualization mode. |
I saw there is an unused class |
What's the problem this feature will solve?
Currently, even the simplest example requires a web server to be run.
However, not every model needs to be visualized, especially the ones that don't need the 2D grid structure.
Describe the solution you'd like
Several simple examples of models that are concise enough to fit in one file, to showcase the modularity of the library, and also that it can be experimented live on a repl.it instance.
The text was updated successfully, but these errors were encountered: