8
$\begingroup$

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?

$\endgroup$
10
$\begingroup$

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

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.