In Mathematica versions < 8, the FrontEnd has a very intelligent behavior:

  • On evaluation, it by default automatically scrolls down the Notebook window to the last printed Output cell but also allows a user to scroll the Notebook window up by hand and then does not scroll down the window again automatically.

  • If the user wishes to restore automatic scrolling it is sufficient to scroll down the window to the last currently printed Output cell and automatic scrolling will be restored.

I feel such behavior very comfortable. But in Mathematica 8 we have no such behavior by default. I found that it may be partially restored by setting

 EvaluationCompletionAction -> {"ScrollToOutput"}]

But then it is not possible to stop automatic scrolling by scrolling the window by hands. It is possible to restore the old scrolling behavior?

Through Mathematica 10.4 the old scrolling behavior has not been restored.

  • Have any new options come on line to control this?

  • Is there a hook to determine scroll position that might be used for a workaround?

  • Could PrintTemporary and/or Dynamic (which is active only when visible) be used to simulate the old behavior?

  • If the old behavior is simply not achievable what is the best alternative for a similar workflow?

  • $\begingroup$ Welcome, Alexey! $\endgroup$
    – Mr.Wizard
    Feb 18, 2012 at 4:44
  • 1
    $\begingroup$ Actually, I found the old behaviour rather annoying. Quite distracting when you were editing and running evaluations at the same time. $\endgroup$ Mar 17, 2012 at 13:19
  • $\begingroup$ @Sjoerd With the old behavior we could not only edit the input during evaluation (as we can by default now) but also inspect already printed outputs from the running evaluation (by scrolling the page). And all of this without loosing automatic scrolling when we wish! I see no advantages in loosing this. $\endgroup$ Mar 17, 2012 at 19:09
  • 1
    $\begingroup$ In Mathematica 10, it does not seem possible to peacefully write some code while it is evaluating. It keeps jumping back and forth between the code line I am writing and the end of the input part of the section that is being evaluated. Is there a way to normally work on the code while Mathematica 10 is evaluating part of the notebook? $\endgroup$
    – Wizzerad
    Jan 29, 2016 at 3:05
  • 1
    $\begingroup$ @Wizzerad I suggest you to ask the tech support about it because (as you see) no one here seems to know how to get tiny control on the FrontEnd behavior while evaluating. If you get a solution, please post it here - it will help others. $\endgroup$ Jan 29, 2016 at 8:37


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.