10

If I'm evaluating an entire large notebook, I usually just press Alt-V Y to find the currently evaluating cell. Is there a way to keep the currently evaluating cell automatically in focus so that the notebook automatically scrolls there without me having to press any keys?

Philip Maymin
  • 1,163
  • 8
  • 12

2 Answers2

10

I just tried this, and it seems to work. See if it works for you.

Type this in first cell (thanks to Kuba suggestion, changed it to use SelectionMove[EvaluationCell[])

SetOptions[EvaluationNotebook[], CellProlog :> SelectionMove[EvaluationCell[], All, Cell]]

You can make the above an initialization cell.

Then Evaluation->Evaluate notebook. now it will scroll down, keeping current evaluating cell in view all the time.

enter image description here

reference: how-to-make-cursor-jump-automatically-to-next-input-cell-after-evaluating-previo

Nasser
  • 143,286
  • 11
  • 154
  • 359
8

This is not as general as Nasser's answer but in case of output being there you can use:

SetOptions[$FrontEndSession, EvaluationCompletionAction -> "ScrollToOutput"]
Kuba
  • 136,707
  • 13
  • 279
  • 740