In iPython Notebook, is it possible to disable the autoscrolling of long outputs? Or at least set a threshold for the output length before autoscrolling sets in?
Tried the following command
%%javascript
IPython.OutputArea.auto_scroll_threshold = 9999;
but it gives an error
Javascript error adding output!
SyntaxError: Unexpected identifier
See your browser Javascript console for more details.
In the similar way that you can hack a cell to autorun, you can add the following cell:
which will set the
auto_scroll_threshold
to-1
which means never autoscroll.This works on my notebooks that are trusted (e.g.
jupyter trust notebook.ipynb
), not sure if any cells are executed in untrusted notebooks.To disable auto-scrolling, execute this javascript in a notebook cell before other cells are executed:
There is also an ipython notebook extension, disable_autoscroll, you can use for a more permanent change. Follow ipython issue #2172 for the latest details.
To disable scroll to bottom after
run all
command, execute this code:Can also be done via user interface.