Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jofmi/ipysimulate

Tools to create interactive simulations with IPython and Jupyter.
https://github.com/jofmi/ipysimulate

agent-based-modeling ipython ipywidgets jupyter jupyterlab-extension simulation widgets

Last synced: 2 months ago
JSON representation

Tools to create interactive simulations with IPython and Jupyter.

Awesome Lists containing this project

README

        

IPySimulate - Interactive simulations for Python
================================================

[![PyPI](https://img.shields.io/pypi/v/ipysimulate)](https://pypi.org/project/ipysimulate/)
[![GitHub](https://img.shields.io/github/license/joelforamitti/ipysimulate)](https://github.com/JoelForamitti/ipysimulate/blob/master/LICENSE)
[![Documentation Status](https://readthedocs.org/projects/ipysimulate/badge/?version=stable)](https://ipysimulate.readthedocs.io/en/stable/?badge=stable)

Tools to create interactive simulations with IPython and Jupyter,
including a control panel, widgets to adjust parameters at runtime,
and dynamic [D3.js](https://d3js.org/) visualizations.
This package is still in an early stage of development.
Contributions are welcome :)

**Documentation**: https://ipysimulate.readthedocs.io/
**Application examples**: https://agentpy.readthedocs.io/en/stable/guide_interactive.html

Installation
------------

To install use pip:

$ pip install ipysimulate

For a development installation (requires [Node.js](https://nodejs.org) and [Yarn version 1](https://classic.yarnpkg.com/)):

$ git clone https://github.com/JoelForamitti/ipysimulate.git
$ cd ipysimulate
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix ipysimulate
$ jupyter nbextension enable --py --sys-prefix ipysimulate

When actively developing your extension for JupyterLab, run the command:

$ jupyter labextension develop --overwrite ipysimulate

Then you need to rebuild the JS when you make a code change:

$ cd js
$ yarn run build

You then need to refresh the JupyterLab page when your javascript changes.