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!
- Download and install Python 2.7 for Windows. See free Python distributions.
- Install PyNEURON (see Installation for more information, if you need):
$ pip install PyNEURON
- That's it. You're good to go:
C:\>python ActivePython 126.96.36.199 (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 See http://www.neuron.yale.edu/credits.html >>>
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.