7

Let's say that I queue a number of cells in evaluation, and each is set to run something that will take a relatively long time to finish. I realize midway through the queue that one of the commands is erroneous, and I'd like to fix it without losing all of the calculations thus far. Is there a way to insert cells into (and remove cells from) the evaluation queue (perhaps from within a subsession) without aborting the entire evaluation?

Kuba
  • 136,707
  • 13
  • 279
  • 740
Michael L.
  • 857
  • 5
  • 21

1 Answers1

7

Removing

Those three actions are using the same functionality, pick whatever is more convenient:

Assuming the desired cell is selected:

  • menu item Evaluation / Remove from evaluation queue

  • shortcut Shift+Alt+.

  • token FrontEndExecute @ FrontEndToken @ "RemoveFromEvaluationQueue"

Inserting

I don't know if there is a general way because cells can be queued in a way independent from their vertical order in the notebook.

What comes to my mind is to remove all remaining cells, then add new and the rest again.

Kuba
  • 136,707
  • 13
  • 279
  • 740