I'm dealing with some GB-sized numpy arrays in IPython. When I delete them, I definitely want them gone, in order to recover the memory. IPythons output cache is quite annoying there, as it keeps the objects alive even after deleting the last actively intended reference to them. I already set
c.TerminalInteractiveShell.cache_size = 0
in the IPython configuration, but this only disables caching of entries to _oh
, the other variables like _
, __
and so on are still created. I'm also aware of %xdel
, but anyways, I'd prefer to disable it completely, as I rarely use the output history anyways, so that a plain del
would work again right away.
_
etc) only if you display them, don't they? Assignmentx=largearray
andlargearray;
suppress that. – Supernatant