I have several (almost ten) Gb of memory occupied by the ipython kernel. I think this comes from large objects (matrices, lists, numpy arrays, ...) that I could create during some operation, and now I no longer need to.
I would like to list all the objects that I defined and sort them by their memory. Is there an easy way to do this? There is an nbytes method for certain types, but not for everyone ... so I'm looking for a general way to list all the objects that I created and their memory.
python numpy memory ipython jupyter-notebook
Rho phi
source share