Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: Testing 18.04
Path: mesa.ipynb
Views: 264Kernel: Python 3 (Ubuntu Linux)
Mesa on CoCalc (Python 3, Ubuntu Linux)
Mesa is a modular framework for building, analyzing and visualizing agent-based models.
https://mesa.readthedocs.io/en/master/tutorials/intro_tutorial.html
In [1]:
Out[1]:
<module 'mesa' from '/usr/local/lib/python3.6/dist-packages/mesa/__init__.py'>
In [2]:
Out[2]:
'0.8.4'
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
Out[7]:
(array([ 4., 0., 0., 3., 0., 0., 2., 0., 0., 1.]),
array([ 0. , 0.3, 0.6, 0.9, 1.2, 1.5, 1.8, 2.1, 2.4, 2.7, 3. ]),
<a list of 10 Patch objects>)
In [8]:
Out[8]:
(array([ 446., 292., 156., 53., 39., 6., 8.]),
array([0, 1, 2, 3, 4, 5, 6, 7]),
<a list of 7 Patch objects>)
In [9]:
In [10]:
In [11]:
In [12]:
Out[12]:
In [13]:
In [14]:
In [15]:
Out[15]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4c83f84710>
In [16]:
Out[16]:
In [17]:
Out[17]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4c83f26a20>
In [0]: