[Numpy-discussion] how do I delete unused matrix to save the memory?

Travis Vaught travis@enthought....
Mon Dec 8 21:00:57 CST 2008


Try:

del(myvariable)

Travis

On Dec 8, 2008, at 7:15 PM, frank wang <f.yw@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@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081208/59d9b750/attachment.html 


More information about the Numpy-discussion mailing list