Ipython problem

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
henriklinden

Ipython problem

Post by henriklinden »

Hi,

I am using NEURON 6.2.1 (2189) with Ipython 0.8.4. If I do

Code: Select all

import neuron
h = neuron.h
and then type

Code: Select all

h.
and press tab I would expect to get a list of available functions and variables in the h-object. Instead Ipython crashes with the message
h.Bus error
Does anyone know if there is a way to repair this?
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Ipython problem

Post by hines »

I forgot to implement h.__dict__ when h is the TopLeveHocInterpreter and need to
think about whether I should really print every name known to the Hoc interpreter.
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Ipython problem

Post by hines »

The http://www.neuron.yale.edu/cgi-bin/trac ... geset/2193
has the behavior

Code: Select all

$ ipython
...
from neuron import h
...
In [3]: h.<tab>
Display all 403 possibilities? (y or n)
henriklinden

Re: Ipython problem

Post by henriklinden »

That's great, thank you!

Henrik
Post Reply