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 » Fri Aug 15, 2008 9:59 am

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: 1574
Joined: Wed May 18, 2005 3:32 pm

Re: Ipython problem

Post by hines » Fri Aug 15, 2008 12:07 pm

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: 1574
Joined: Wed May 18, 2005 3:32 pm

Re: Ipython problem

Post by hines » Fri Aug 22, 2008 7:39 am

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 » Sun Aug 24, 2008 6:04 am

That's great, thank you!

Henrik

Post Reply