[Numpy-discussion] List Array References?

Robin robince at gmail.com
Fri Feb 15 07:22:18 EST 2008


On Thu, Feb 14, 2008 at 8:43 PM, Alexander Michael <lxander.m at gmail.com> wrote:
> Is there a way to list all of the arrays that are referencing a given
>  array? Similarly, is there a way to get a list of all arrays that are
>  currently in memory?

For the second question, if you are working interactively in Ipython, you can do
%who ndarray
or
%whos ndarray
to get a list of arrays.

It might be possible to get this functionality within a script/program
through the ipython api, but I'm afraid I don't know much about that.

Cheers,

Robin



More information about the NumPy-Discussion mailing list