pythonpandasipythonjupyter-notebook

How to avoid output into scrollable frames in jupyter notebook?


Suddenly, output for statements started to appear inside scrollable frames.

I was playing with only one parameter

pd.options.display.max_rows = 1000

but after experiments, I commented this line out and restarted the kernel.

Nevertheless, one of my outputs appears inside frame.

How to avoid this?


Solution

  • 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 a jupyter notebook extension, autoscroll, you can use for a nicer UI.