10
$\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$
1

2 Answers 2

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$
2
  • $\begingroup$ @Kuba thanks, You suggestion of using EvaluationCell[] is better. I updated it. $\endgroup$
    – Nasser
    Mar 9, 2015 at 9:43
  • $\begingroup$ Perfect! And elegant! $\endgroup$ Mar 9, 2015 at 12:37
8
$\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 and acknowledge you have read our privacy policy.

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