This repository contains python exercises accompanying the book Neuronal Dynamics by Wulfram Gerstner, Werner M. Kistler, Richard Naud and Liam Paninski. References to relevant chapters will be added in the Teaching Materials section of the book homepage.


See the indiviual exercises - they contain instructions on how to use the python code to solve them.

To install the exercises using pip simply execute:

pip install --upgrade neurodynex

To install the exercises with anaconda/miniconda execute:

conda install -c brian-team -c epfl-lcn neurodynex

See the setup instructions for details on how to install the python classes needed for the exercises.


We are currently rewriting the python exercises to use the more recent Brian2 Simulator. The old brian1 exercises are available on the brian1 branch.


The following requirements should be met:

  • Either Python 2.7 or 3.4
  • Brian2 Simulator
  • Numpy
  • Matplotlib
  • Scipy (only required in some exercises)