[IPython-dev] traits/tvtk objects and completion
Arnd Baecker
arnd.baecker at web.de
Sun Jan 8 09:19:54 EST 2006
Hi,
the attached example shows some weirdness
with traits/tvtk objects in that
TAB completion does not work for objects
defined in an embedded shell.
I know, there is quite some magic
going on with the embedding, so this
might be a difficult one...
Best, Arnd
# ----- tab_completion_tst.py
from enthought.tvtk import tvtk
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
cone = tvtk.ConeSource()
print "At the prompt do:"
print "c = cone"
print "then try"
print " cone.<TAB>"
print "vs."
print " c.<TAB>"
print "note: `c==cone` gives True"
ipshell()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tab_completion_tst.py
Type: text/x-python
Size: 327 bytes
Desc:
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20060108/ee33a03f/attachment.py>
More information about the IPython-dev
mailing list