laike9m / pdir2

Pretty dir() printing with joy:beer:
MIT License
1.32k stars 47 forks source link

Extension for ipython (magic functions) #17

Open santagada opened 7 years ago

santagada commented 7 years ago

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).

liwt31 commented 5 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.