Clone wiki


PyNEURON is a stand-alone Python package for NEURON, Yale's project for "empirically-based simulations of neurons and networks of neurons".

With PyNEURON you'll be able to use the NEURON simulation environment from Python 2.7 on Windows without installing or compiling NEURON!

Easy Start

$ pip install PyNEURON
  • That's it. You're good to go:
ActivePython (ActiveState Software Inc.) based on Python 2.7.1 (r271:86832, Feb  7 2011, 11:30:38) [MSC v.1500 32 bit (Intel)] on win32
>>> from neuron import h
NEURON -- VERSION 7.2 (527+:a38b8d137de6+) 2011-07-26
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008

Limitations and Known Issues

  • PyNEURON is supported only on Windows. If this work will inspire someone to reproduce the work on MAC or Linux, I'll be happy to add it in.
  • PyNEURON was tested only with Python 2.7, not sure if other 2.x works. Tested with ActiveState, Enthought CPython distributions.
  • Compilation of MOD files only works for 32bit Python versions (possibly on 64bit Windows)
  • You need to define the NEURONHOME environment variable with the path where the NEURON home is installed under Python (this is distribution dependent) in order to use NEURON built-in hoc files.

More Info