I am new to Numpy and trying to search for a function to list out the variables along with their sizes (both the matrix dimensions as well as memory usage).
I am essentially looking for an equivalent of the “whos” command in MATLAB and Octave. Does there exist any such command in NumPy?
If you are using IPython, there is a
whoscommand built-in:In general I highly recommend using IPython when doing interactive work in python with numpy/scipy/matplotlib/etc. Fernando Perez and others are actively adding a lot of great features.