Page 1 of 1
Calling python from hoc
Posted: Mon Oct 18, 2010 7:48 pm
by aluchko
I'm writing some optimizers and was hoping to see what it was like writing them in python. The issue is that in order to integrate this code into the neuron gui at some point a call from hoc to python needs to occur. I was wondering if there were any examples of this anywhere?
Re: Calling python from hoc
Posted: Tue Oct 19, 2010 10:14 am
by ted
aluchko wrote:I'm writing some optimizers and was hoping to see what it was like writing them in python.
Excellent!
at some point a call from hoc to python needs to occur. I was wondering if there were any examples of this anywhere?
The Programmer's Reference provides some examples
http://www.neuron.yale.edu/neuron/stati ... ing_Python
and you may find some others in
Hines, M.L., Davison, A.P. and Muller, E. NEURON and Python. Frontiers in Neuroinformatics 3:10.3389/neuro.11.001.2009, 2009
and maybe also in
Davison, A. P., Hines, M. L. and Muller, E.. Trends in programming languages for neuroscience simulations. Frontiers in Neuroscience 3:374-380, 2009
(although I seem to recall the latter was more of an endorsement of Python for new code development).
Re: Calling python from hoc
Posted: Wed Nov 17, 2010 9:57 pm
by aluchko
Thanks, those docs really helped.