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 conda:
> conda install brainpy -c brainpy
Install BrainPy using pip:
> 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
The following packages need to be installed to use BrainPy:
- Python >= 3.7
- NumPy >= 1.13
- SymPy >= 1.2
- Numba >= 0.50.0
- Matplotlib >= 3.0
More neuron examples please see bpmodels/neurons;
More synapse examples please see bpmodels/synapses;
More network examples please see brainpy-examples/networks and brainpy-examples/from_papers.
More examples please see brainpy-examples/dynamics_analysis.


