Open santagada opened 7 years ago
The __init__
file in pdir
does some tricks so that regular import pdir
will import a class PrettyDir
instead of a module. This is convenient for daily usage however it will confuse the %load_ext
mechanism in IPtyhon.
It would be pretty cool to install pdir and have it as a magic function in ipython:
%pdir x
as a magic function it should probably receive an optional search parameter because I don't think you can call methods on the return of magic functions. Maybe it could also be activated and supplant dir by default, or even supplant the default autocomplete listing (by grouping inside the auto complete box).