Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension for ipython (magic functions) #17

Open
santagada opened this issue Mar 18, 2017 · 1 comment
Open

Extension for ipython (magic functions) #17

santagada opened this issue Mar 18, 2017 · 1 comment

Comments

@santagada
Copy link

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
Copy link
Contributor

liwt31 commented Oct 20, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants