[Numpy-discussion] how do I delete unused matrix to save the memory?
Travis Vaught
travis at enthought.com
Mon Dec 8 22:00:57 EST 2008
Try:
del(myvariable)
Travis
On Dec 8, 2008, at 7:15 PM, frank wang <f.yw at hotmail.com> wrote:
> Hi,
>
> I have a program with some variables consume a lot of memory. The
> first time I run it, it is fine. The second time I run it, I will
> get MemoryError. If I close the ipython and reopen it again, then I
> can run the program once. I am looking for a command to delete the
> intermediate variable once it is not used to save memory like in
> matlab clear command.
>
> Thanks
>
> Frank
>
> Send e-mail faster without improving your typing skills. Get your
> Hotmail® account.
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20081208/59d9b750/attachment.html>
More information about the NumPy-Discussion
mailing list