Modelling of spiking neural networks with Brian

Tutorial T7 at CNS 2014, Québec City (July 26th 2014)

The tutorial will take place in room 2101 at the Québec City Conference Center. Please consider installing Brian 2 beforehand, see the instructions below.


All the material from the tutorial is available in the "2014-CNS-tutorial" folder in the "brian-material" github repository:

You can clone the repository using git, but you can also download all the material in a single ZIP file.


In the morning sessions, we plan to give an introduction to Brian, no prior knowledge of Brian is necessary. The afternoon sessions will be about more advanced topics and delve a bit into Brian's internals.



9.00 - 9.30


9.30 - 10.10

Core concepts of Brian2

Coffee break

10.40 - 12.00

Hands-on tutorial

Lunch break

13.30 - 13.45

Going from Brian 1 to Brian 2

13.45 - 14.50

Advanced Brian 2 (code generation and the new "standalone mode")

Coffee break

15.20 - 16.30

Extending Brian 2

19.00 - ...

Brian social (place TBA)

Brian 2 installation

We recommend that you install Brian 2 before coming to the tutorial. If you already have a working Python installation with the main Brian dependencies (numpy and scipy), you can try to skip directly to the step "Installing Brian 2" .

For setting up a Python environment with the libraries that Brian depends on, we recommend using the Anaconda distribution by Continuum Analytics. On Windows, an alternative to Anaconda is the Python(x,y) distribution, which is in particular recommended if you want to use the C++ code generation/standalone mode on Windows. Download its installer from

Installing the Anaconda distribution

Installing Brian 2

Working with Brian 2