# Automatically scroll along with currently evaluating cell?

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?

## 2 Answers

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.

• @Kuba thanks, You suggestion of using EvaluationCell[] is better. I updated it. – Nasser Mar 9 '15 at 9:43
• Perfect! And elegant! – Philip Maymin Mar 9 '15 at 12:37

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

SetOptions[\$FrontEndSession, EvaluationCompletionAction -> "ScrollToOutput"]