35

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?

Dims
  • 47,675
  • 117
  • 331
  • 600

4 Answers4

58

You can just use mouse to click on the outside of the output Frame to toggle between scrolling, it worked for me. More precisely, you have to click the square to the left of your output (see image). Where to click exactly

Single click will toggle scroll mode, double click will hide output completely.

user74696c
  • 324
  • 4
  • 12
Bharat
  • 581
  • 4
  • 2
46

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.

mtd
  • 2,224
  • 19
  • 21
13

I stumbled across the same problem, a scrollbar appeared for outputs out of nowhere.

Just go to- Cell > All Outputs > Toggle Scrolling (On the Menu Bar) and outputs will go back to no scrolling.

Vaibhav Chobisa
  • 131
  • 1
  • 4
0

The problem might be caused by metadata in the jupyter .ipynb file. In my case the cell content looks like

{
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "plot_timecourse(time, v_soma)"
   ]
  },

By just removing the scroll part, i.e. by removing the metadata:

{
   "cell_type": "code",
   "execution_count": null,
   "metadata": {}
   "outputs": [],
   "source": [
    "plot_timecourse(time, v_soma)"
   ]
  },

fixed the issue of the weird scroll box.

Alex
  • 41,580
  • 88
  • 260
  • 469