brian-team/brian2

Brian is a free, open source simulator for spiking neural networks.

Python

1,245

5,559 commits

updated Oct 15, 2026

See the code

README

Brian2

A clock-driven simulator for spiking neural networks

Brian is a free, open source simulator for spiking neural networks. It is written in the Python programming language and is available on almost all platforms. We believe that a simulator should not only save the time of processors, but also the time of scientists. Brian is therefore designed to be easy to learn and use, highly flexible and easily extensible.

Please report issues at the GitHub issue tracker (https://github.com/brian-team/brian2/issues) or in the Brian forum (https://brian.discourse.group).

Documentation for Brian 2 can be found at http://brian2.readthedocs.org

Brian 2 is released under the terms of the CeCILL 2.1 license.

If you use Brian for your published research, we kindly ask you to cite our article:

Stimberg, M, Brette, R, Goodman, DFM. “Brian 2, an Intuitive and Efficient Neural Simulator.” eLife 8 (2019): e47314. doi: 10.7554/eLife.47314.

PyPI version Conda version Debian package Fedora package Spack AUR version Docker Image Version

Docker Pulls DOI Software Heritage (repository) Software Heritage (release)

Contributor Covenant Discourse topics Discourse chat

Neuromorphic Computing PySimHub

Ruff SPEC 0 — Minimum Supported Dependencies

Quickstart

Try out Brian on the mybinder service:

mybinder

Dependencies

The following packages need to be installed to use Brian 2 (cf. pyproject.toml):

  • Python >= 3.12
  • NumPy >= 2.0
  • SymPy >= 1.2
  • Cython >= 0.29.21
  • PyParsing >= 3
  • Jinja2 >= 2.7
  • setuptools >= 61
  • py-cpuinfo (only required on Windows)
  • packaging

For full functionality, you might also want to install:

  • GSL >=1.16
  • SciPy >=0.13.3
  • Matplotlib >= 2.0

To build the documentation:

  • Sphinx >=7,<9
  • ipython >=5
  • sphinx-tabs

To run the test suite:

  • pytest >= 8
  • pytest-xdist (optional)

Testing status for master branch

Test status on GitHub Actions Publish status on GitHub Actions Test coverage Documentation Status

biological-simulations
brian
brian2
code-generation
computational-neuroscience
differential-equations
neuroscience
python
science
simulation-framework
spiking-neural-networks

brian-team/brian2

Brian is a free, open source simulator for spiking neural networks.

Python

1,245

5,559 commits

updated Oct 15, 2026

See the code

README

Brian2

A clock-driven simulator for spiking neural networks

Brian is a free, open source simulator for spiking neural networks. It is written in the Python programming language and is available on almost all platforms. We believe that a simulator should not only save the time of processors, but also the time of scientists. Brian is therefore designed to be easy to learn and use, highly flexible and easily extensible.

Please report issues at the GitHub issue tracker (https://github.com/brian-team/brian2/issues) or in the Brian forum (https://brian.discourse.group).

Documentation for Brian 2 can be found at http://brian2.readthedocs.org

Brian 2 is released under the terms of the CeCILL 2.1 license.

If you use Brian for your published research, we kindly ask you to cite our article:

Stimberg, M, Brette, R, Goodman, DFM. “Brian 2, an Intuitive and Efficient Neural Simulator.” eLife 8 (2019): e47314. doi: 10.7554/eLife.47314.

PyPI version Conda version Debian package Fedora package Spack AUR version Docker Image Version

Docker Pulls DOI Software Heritage (repository) Software Heritage (release)

Contributor Covenant Discourse topics Discourse chat

Neuromorphic Computing PySimHub

Ruff SPEC 0 — Minimum Supported Dependencies

Quickstart

Try out Brian on the mybinder service:

mybinder

Dependencies

The following packages need to be installed to use Brian 2 (cf. pyproject.toml):

  • Python >= 3.12
  • NumPy >= 2.0
  • SymPy >= 1.2
  • Cython >= 0.29.21
  • PyParsing >= 3
  • Jinja2 >= 2.7
  • setuptools >= 61
  • py-cpuinfo (only required on Windows)
  • packaging

For full functionality, you might also want to install:

  • GSL >=1.16
  • SciPy >=0.13.3
  • Matplotlib >= 2.0

To build the documentation:

  • Sphinx >=7,<9
  • ipython >=5
  • sphinx-tabs

To run the test suite:

  • pytest >= 8
  • pytest-xdist (optional)

Testing status for master branch

Test status on GitHub Actions Publish status on GitHub Actions Test coverage Documentation Status

biological-simulations
brian
brian2
code-generation
computational-neuroscience
differential-equations
neuroscience
python
science
simulation-framework
spiking-neural-networks

Project health

Overall

6.5/10

Maintained

10/10

Code review

6/10
OpenSSF Scorecard

PyPI

Latest release

2.10.1 · Dec 5, 2025

Releases this year

2

Significant stargazers

Abhinav Kumar

75 followers · starred Jul 2024

Amber Sprenkels

147 followers · starred Feb 2017

Zeno Gantner

185 followers · starred Dec 2019

Len Boyette

67 followers · starred Mar 2026