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.
You can try Cell -> Current Outputs -> Toggle Scrolling in the Jupyter UI to enable the scrolling for the output of one cell.
Can also be done via user interface.
To disable auto-scrolling, execute this javascript in a notebook cell before other cells are executed:
%%javascript IPython.OutputArea.prototype._should_scroll = function(lines) { return false; }
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With