[IPython-user] %whos type usage
Mon Mar 1 16:08:14 CST 2010
Thanks for the quick response. Unfortunately, implementing something
like this is quite beyond me. I would be happy to help out by testing
patches and such.
As a workaround, I found that importing via ipy_user_conf.py does
prevent cluttering the %whos output, and so that is helpful.
Brian Granger wrote:
> Internally we have this ability (we use this in pylab mode), but that capability
> is not exposed to users. To really handle this well, we would need to have
> an import hook that allowed imported modules to be excluded from %whos.
> Then we could provide magics for enabling/disabling this import hook.
> We are currently focused on other things, but we would be glad to accept
> patches that implement this.
> On Mon, Mar 1, 2010 at 10:20 AM, Jonathan Stickel <firstname.lastname@example.org> wrote:
>> I find the magic command "%whos" to be very helpful. However, although
>> it is possible to include objects of only certain types, it does not
>> seem possible to /exclude/ objects of a certain type. For example, if I
>> import a large number of functions from a module into my object space,
>> it would be helpful to be able to exclude objects of type "function"
>> when using %whos so that I can see my local variables. Is there a way
>> to this that I am not aware of?
>> IPython-user mailing list
More information about the IPython-user