Note: BrainPy is a project under development. More features are coming soon. Contributions are welcome.
BrainPy
is a lightweight framework based on the latest Just-In-Time (JIT) compilers (especially Numba). The goal of BrainPy
is to provide a unified simulation and analysis framework for neuronal dynamics with the feature of high flexibility and efficiency. BrainPy is flexible because it endows the users with the fully data/logic flow control. BrainPy is efficient because it supports JIT acceleration on CPUs and GPUs.
Install BrainPy
using pip
:
> pip install brainpy-simulator
Install BrainPy
using conda
:
> conda install brainpy-simulator -c brainpy
Install BrainPy
from source:
> pip install git+https://github.com/PKU-NIP-Lab/BrainPy
> # or
> pip install git+https://git.openi.org.cn/OpenI/BrainPy
> # or
> pip install -e git://github.com/PKU-NIP-Lab/BrainPy.git@V0.2.5
BrainPy
is based on Python (>=3.7), and the following packages are
required to be installed to use BrainPy
:
- NumPy >= 1.13
- SymPy >= 1.2
- SciPy >= 1.2
- Numba >= 0.50.0
- Matplotlib >= 3.0
More neuron examples please see BrainPy-Models/neurons;
More synapse examples please see BrainPy-Models/synapses;
More network examples please see BrainPy-Models/from_papers.
More examples please see BrainPy-Models/dynamics_analysis.