Mathematica How to close a subsession and resume the main session?

  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    Resume
AI Thread Summary
To close a subsession and resume the main session during a long calculation, use the Evaluation > Interrupt Evaluation option to start a subsession. The process for exiting the subsession is not clearly documented, leading to confusion among users. According to Wolfram Language documentation, you can exit a dialog using Return[], which allows you to return a specific value or the last output from the dialog. The connection between the front end menu UI and the Dialog[] function is not immediately apparent, highlighting a gap in user guidance. Clearer instructions on this process would benefit users seeking to manage their calculations effectively.
Swamp Thing
Insights Author
Messages
1,032
Reaction score
770
TL;DR Summary
Ending a subsession in Mathematica
While running a long calculation in a cell, you can do Evaluation > Interrupt Evaluation. A dialog box appears, offering the option of starting a subsession.

But it's not clear how to close the subsession and resume the original calculation. I couldn't find anything on the net.
 
Physics news on Phys.org
From https://reference.wolfram.com/language/ref/Dialog.html:
  • You can exit a dialog using Return[].
  • If you exit with Return[expr], then expr is the value returned by the Dialog function. Otherwise, the value returned is the expression on the last output line in the dialog.
 
  • Informative
  • Like
Likes Swamp Thing and topsquark
Nice !
I would never have made the connection. It doesn't seem obvious what a front end menu UI dialog box has to do with the Dialog[ ] thing.
 

Similar threads

Replies
4
Views
4K
Replies
4
Views
3K
Replies
5
Views
8K
Replies
22
Views
3K
Replies
3
Views
2K
Replies
8
Views
3K
Back
Top