Thanks for the fix. It works for me with python3 on Ubuntu 12.04 64 bit.
One interesting behavior I noted is that when using neuron from a qtconsole or notebook, the message about neuron that prints when executing 'from neuron import h' does not display in the qtconsole or notebook, but rather in the terminal from which I started the program. Similarly h.psection() returns the value 1.0 in the qtconsole or notebook and the usual text prints in the terminal.
For example, if I run ipython in a terminal I get the following:
In [1]: from neuron import h
NEURON -- Release 7.3 (849:5be3d097b917) 2013-04-11
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2013
See
http://www.neuron.yale.edu/neuron/credits
In [2]: soma = h.Section(name='soma')
In [3]: h.psection()
soma { nseg=1 L=100 Ra=35.4
/*location 0 attached to cell 0*/
/* First segment only */
insert morphology { diam=500}
insert capacitance { cm=1}
}
Out[3]: 1.0
If I do the same thing in a qtconsole, I get:
In [1]: from neuron import h
In [2]: soma = h.Section(name='soma')
In [3]: h.psection()
Out[3]: 1.0
and the remaining text is printed in the terminal where I called ipython
larry@larry-VirtualBox:~$ ipython3 qtconsole
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing kernel-28507.json
NEURON -- Release 7.3 (849:5be3d097b917) 2013-04-11
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2013
See
http://www.neuron.yale.edu/neuron/credits
soma { nseg=1 L=100 Ra=35.4
/*location 0 attached to cell 0*/
/* First segment only */
insert morphology { diam=500}
insert capacitance { cm=1}
}
I'm not sure this is really a significant problem (It's not for me). I'm just pointing it out because it wasn't what I expected.
Larry