SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] Traits-aware tab completion in ipython

From: Fernando P. <fpe...@gm...> - 2007年07月29日 21:55:13
Hi all,
this is mostly for those of you using TConfig for the rcparams work, I
suppose.
IPython has now traits-aware 'smart' tab-completion. Svn update
ipython to r2568 at least. You'll get:
http://projects.scipy.org/ipython/ipython/browser/ipython/trunk/IPython/Extensions/ipy_traits_completer.py
>From the module docstring, this is how it works:
Usage
=====
The system works as follows. If t is an empty object that HasTraits, then
(assuming the threshold is at the default value of 3):
In [7]: t.ed<TAB>
doesn't show anything at all, but:
In [7]: t.edi<TAB>
t.edit_traits t.editable_traits
shows these two names that come from traits. This allows you to complete on
the traits-specific names by typing at least 3 letters from them (or whatever
you set your threshold to), but to otherwise not see them in normal completion.
######
Let me know if that sounds like a reasonable solution, it was the best
I could think of.
Cheers,
f

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /