[IPython-user] %whos type usage

Jonathan Stickel jjstickel@vcn....
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.

Jonathan


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.
> 
> Cheers,
> 
> Brian
> 
> On Mon, Mar 1, 2010 at 10:20 AM, Jonathan Stickel <jjstickel@vcn.com> 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?
>>
>> Thanks,
>> Jonathan
>> _______________________________________________
>> IPython-user mailing list
>> IPython-user@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>
> 
> 
> 


More information about the IPython-user mailing list