Prevent MMA from saving results in Out[] [duplicate]












3















This question already has an answer here:




  • What are the most common pitfalls awaiting new users?

    37 answers




MMA automatically saves every result which then can be called via Out where the argument needs to be given as %n and %n corresponds to the output one wants to refer to. Now this automatic saving works even if you end your lines with a ; or //Quiet. However, if one wants to re-evaluate a cell many times with a memory hungry output, one runs into memory issues. How can one change this automatic behaviour of MMA and save results only in variables which one defines but NOT the output of a cell automatically in Out.










share|improve this question













marked as duplicate by Bob Hanlon, Michael E2, bbgodfrey, Kuba Dec 10 at 7:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 3




    try $HistoryLength = 0?
    – kglr
    Dec 7 at 15:18










  • See common pitfalls / $HistoryLength
    – Michael E2
    Dec 8 at 16:29


















3















This question already has an answer here:




  • What are the most common pitfalls awaiting new users?

    37 answers




MMA automatically saves every result which then can be called via Out where the argument needs to be given as %n and %n corresponds to the output one wants to refer to. Now this automatic saving works even if you end your lines with a ; or //Quiet. However, if one wants to re-evaluate a cell many times with a memory hungry output, one runs into memory issues. How can one change this automatic behaviour of MMA and save results only in variables which one defines but NOT the output of a cell automatically in Out.










share|improve this question













marked as duplicate by Bob Hanlon, Michael E2, bbgodfrey, Kuba Dec 10 at 7:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 3




    try $HistoryLength = 0?
    – kglr
    Dec 7 at 15:18










  • See common pitfalls / $HistoryLength
    – Michael E2
    Dec 8 at 16:29
















3












3








3


0






This question already has an answer here:




  • What are the most common pitfalls awaiting new users?

    37 answers




MMA automatically saves every result which then can be called via Out where the argument needs to be given as %n and %n corresponds to the output one wants to refer to. Now this automatic saving works even if you end your lines with a ; or //Quiet. However, if one wants to re-evaluate a cell many times with a memory hungry output, one runs into memory issues. How can one change this automatic behaviour of MMA and save results only in variables which one defines but NOT the output of a cell automatically in Out.










share|improve this question














This question already has an answer here:




  • What are the most common pitfalls awaiting new users?

    37 answers




MMA automatically saves every result which then can be called via Out where the argument needs to be given as %n and %n corresponds to the output one wants to refer to. Now this automatic saving works even if you end your lines with a ; or //Quiet. However, if one wants to re-evaluate a cell many times with a memory hungry output, one runs into memory issues. How can one change this automatic behaviour of MMA and save results only in variables which one defines but NOT the output of a cell automatically in Out.





This question already has an answer here:




  • What are the most common pitfalls awaiting new users?

    37 answers








memory






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 7 at 15:05









Display Name

55738




55738




marked as duplicate by Bob Hanlon, Michael E2, bbgodfrey, Kuba Dec 10 at 7:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Bob Hanlon, Michael E2, bbgodfrey, Kuba Dec 10 at 7:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 3




    try $HistoryLength = 0?
    – kglr
    Dec 7 at 15:18










  • See common pitfalls / $HistoryLength
    – Michael E2
    Dec 8 at 16:29
















  • 3




    try $HistoryLength = 0?
    – kglr
    Dec 7 at 15:18










  • See common pitfalls / $HistoryLength
    – Michael E2
    Dec 8 at 16:29










3




3




try $HistoryLength = 0?
– kglr
Dec 7 at 15:18




try $HistoryLength = 0?
– kglr
Dec 7 at 15:18












See common pitfalls / $HistoryLength
– Michael E2
Dec 8 at 16:29






See common pitfalls / $HistoryLength
– Michael E2
Dec 8 at 16:29












1 Answer
1






active

oldest

votes


















5














Set $HistoryLength to 0 (docs) :



$HistoryLength = 0





share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    Set $HistoryLength to 0 (docs) :



    $HistoryLength = 0





    share|improve this answer




























      5














      Set $HistoryLength to 0 (docs) :



      $HistoryLength = 0





      share|improve this answer


























        5












        5








        5






        Set $HistoryLength to 0 (docs) :



        $HistoryLength = 0





        share|improve this answer














        Set $HistoryLength to 0 (docs) :



        $HistoryLength = 0






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 7 at 15:49

























        answered Dec 7 at 15:20









        kglr

        176k9198404




        176k9198404















            Popular posts from this blog

            Plaza Victoria

            Brian Clough

            Cáceres