Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid output into scrollable frames in jupyter notebook?

Tags:

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?

like image 403
Dims Avatar asked Jan 13 '17 18:01

Dims


People also ask

How do I stop my Jupyter notebook from scrolling?

To prevent scrolling within a single cell output, select the cell and press Shift+O while in command state. It will toggle output for that particular cell. If you want all the cells to display long outputs without scrolling, then go to the Cell tab -> All Outputs -> Toggle Scrolling . That's it !!!

How do you suppress the output in a Jupyter notebook?

Put a ; at the end of a line to suppress the printing of output [Reference].

How do you show full output in Jupyter notebook?

To show the full data without any hiding, you can use pd. set_option('display. max_rows', 500) and pd. set_option('display.

How do you scroll output in a Jupyter notebook?

You can try Cell -> Current Outputs -> Toggle Scrolling in the Jupyter UI to enable the scrolling for the output of one cell.


2 Answers

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.

like image 95
Bharat Avatar answered Sep 20 '22 20:09

Bharat


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.

like image 20
mtd Avatar answered Sep 24 '22 20:09

mtd