[IPython-User] whos | grep keyword?
Fernando Perez
fperez.net@gmail....
Thu Apr 12 23:16:42 CDT 2012
On Tue, Apr 3, 2012 at 9:13 AM, Chao YUE <chaoyuejoy@gmail.com> wrote:
> I think I used
>
> whos | grep keyword
>
> successfully before but now it doesn't work.... I guess I get somewhere
> wrong?
>
> sometime the name list are long that it's nice to filer them.
You can filter by type of variable only:
In [7]: a = 'hello'
In [8]: b = 100
In [9]: whos
Variable Type Data/Info
----------------------------
a str hello
b int 100
In [10]: whos str
Variable Type Data/Info
----------------------------
a str hello
Cheers,
f
More information about the IPython-User
mailing list