[Numpy-discussion] List Array References?

Robin robince@gmail....
Fri Feb 15 06:22:18 CST 2008


On Thu, Feb 14, 2008 at 8:43 PM, Alexander Michael <lxander.m@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