The NEURON and Brian code for the paper:

Smith SL, Smith IT, Branco T, Hausser M (2013) Dendritic spikes enhance stimulus selectivity in cortical neurons in vivo. Nature 503:115-20 doi:

is available at the link:

Example Use:

After downloading the model with a command like:

git clone

You can cd to the NEURON/mod.files folder and compile the mod files with a command like (linux):


(If you need more help for a different platform please consult this page:)

Then in the file change the line:


And then run simulations with the command:


Finally the command

python -i

Will produce images:

screenshot similar to the soma and dendritic voltage traces seen in the papers supplementary movies: