Giter VIP home page Giter VIP logo

charwick / helipad Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 5.0 1.6 MB

An agent-based modeling framework for Python with a shallow learning curve and powerful visualization capabilities.

Home Page: https://helipad.dev

License: MIT License

Python 56.85% CSS 0.69% Jupyter Notebook 42.46%
agent-based-framework agent-based-modeling agent-based-simulation python simulation-environment simulation-framework simulation-modeling

helipad's Introduction

Hi, I'm Cameron Harwick. I'm an economist.

I do work on monetary theory, cryptocurrencies, and the evolution of norms and institutions. The code that supports that research is here: Python for agent-based modeling (check out Helipad), and the usual HTML/CSS/JS/PHP/MySQL stack for my website.

If you're interested in my ... check out ...

helipad's People

Contributors

charwick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

helipad's Issues

docker with helipad

I want to start by saying how well thought out this framework in terms of productivity! I am having trouble getting up and running though and my issue might not be related to helipad per see. I use docker environment for my dev setup so I am not able to follow the typical examples that are listed here, do you have examples I can follow to render say via a webserver but using the same API?

No module named 'ipympl'

I have installed helipad via pip on a Ubuntu system that has Anaconda installed. I cannot run any of the the samples. The same error is returned:

runfile('/home/zinvor/HelipadSpace/helipad-master/sample-models/Cities.py', wdir='/home/zinvor/HelipadSpace/helipad-master/sample-models')
Traceback (most recent call last):

  File "/home/zinvor/HelipadSpace/helipad-master/sample-models/Cities.py", line 186, in <module>
    viz = heli.useVisual(TimeSeries)

  File "/home/zinvor/.local/lib/python3.9/site-packages/helipad/model.py", line 356, in useVisual
    self.visual = viz(self) if viz is not None else None

  File "/home/zinvor/.local/lib/python3.9/site-packages/helipad/visualize.py", line 94, in __init__
    super().__init__(model)

  File "/home/zinvor/.local/lib/python3.9/site-packages/helipad/visualize.py", line 55, in __init__
    get_ipython().magic('matplotlib widget')

  File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 2434, in magic
    return self.run_line_magic(magic_name, magic_arg_s, _stack_depth=2)

  File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 2336, in run_line_magic
    result = fn(*args, **kwargs)

  File "<decorator-gen-101>", line 2, in matplotlib

  File "/usr/lib/python3/dist-packages/IPython/core/magic.py", line 187, in <lambda>
    call = lambda f, *a, **k: f(*a, **k)

  File "/usr/lib/python3/dist-packages/IPython/core/magics/pylab.py", line 99, in matplotlib
    gui, backend = self.shell.enable_matplotlib(args.gui.lower() if isinstance(args.gui, str) else args.gui)

  File "/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py", line 3515, in enable_matplotlib
    pt.activate_matplotlib(backend)

  File "/usr/lib/python3/dist-packages/IPython/core/pylabtools.py", line 322, in activate_matplotlib
    plt.switch_backend(backend)

  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 276, in switch_backend
    class backend_mod(matplotlib.backend_bases._Backend):

  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 277, in backend_mod
    locals().update(vars(importlib.import_module(backend_name)))

  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'ipympl'

I installed imympl and pwm separately for good measure using pip but continue to see the same. What is producing this behavior?

Windows installer does not install 1.3

Using pip install -U helipad in a Windows system installs an old version of helipad that is broken (the misnamed graphics.py file that does not have the complete code that is included in visualize.py that I installed on my Ubuntu machine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.