Resize ipython laptop output window

By default, the output for the ipython laptop is limited to a small auxiliary window at the bottom. This forces us to use the separate scrollbar that comes with the exit window when the exit is large.

Any configuration parameter to make it unlimited in size, instead works as high as the actual output? Or can you resize it after creating it?

+88
ipython-notebook jupyter-notebook
12 Sep '13 at 17:15
source share
8 answers

See the jupyter autoscroll extension (part of jupyter_contrib_nbextensions) , which allows you to choose when the output starts to scroll in the drop-down menu (you can set it to never scroll). The API used is not officially supported, so it can break at any time.

+7
Sep 13 '13 at 5:45
source share

You can switch the scroll window in the main menu of the laptop

Cell β†’ Current Outputs β†’ Scroll Toggle

+181
Aug 01 '16 at 17:05
source share

Addendum No. 2: This comment: https://github.com/ipython/ipython/issues/2172#issuecomment-53708976 indicates how to increase the maximum size of output cells. Run the following code in the notebook:

%%javascript IPython.OutputArea.auto_scroll_threshold = 9999; 
+39
Nov 03 '14 at 9:15
source share

This worked for me in Chrome. Run it in a separate cell. Select the maximum height you want to display without scrolling.

 %%html <style> .output_wrapper, .output { height:auto !important; max-height:1000px; /* your desired max-height here */ } .output_scroll { box-shadow:none !important; webkit-box-shadow:none !important; } </style> 

You still get scrollbars if the content exceeds the maximum height. However, there will be no shadow. Just increase the maximum height even more if you really don't want to scroll at all.

+13
Jul 04. '16 at 18:31
source share

I simply placed the cursor in the gray box next to the output and clicked, and then the entire output was displayed.

+9
Apr 15 '18 at 0:06
source share

Adding to Matt's answer: the file has moved to a subdirectory in this github project:

https://github.com/ipython-contrib/IPython-notebook-extensions/blob/master/usability/autoscroll.js

+7
Feb 08 '14 at 2:57
source share

To change the height of the scrollable output, I do the following (you can change 44em):

 from IPython.core.display import display, HTML display(HTML("<style>div.output_scroll { height: 44em; }</style>")) 
+3
Aug 14 '19 at 14:13
source share

For plot.ly iplot, I had to add the following to see any changes (it changed the whole output)

 %%html <style> .python-iframe > iframe { height:1000px !important; } </style> 
+1
May 20 '19 at 9:41
source share



All Articles