How to get the large output window in jupyter notebook?
11,871
In case somebody wants to resize the height of the scrollable output instead of removing the scroll feature:
from IPython.core.display import display, HTML
display(HTML("<style>div.output_scroll { height: 44em; }</style>"))
44em is just an example
Author by
Admin
Updated on July 13, 2022Comments
-
Admin almost 2 years
When we have a large output in jupyter notebook it automatically creates scrollable output window. Is there a way we can choose width and height of window so that all of the output plots are shown in jupyter notebook?
For example:
import matplotlib.pyplot as plt %matplotlib inline for i in range(10): plt.plot(range(10)) plt.show()
Can we see all the plots without scrolling?
I am aware of autoscroll nbextension, but wanted to get a large output window here.
Also, for pandas there are commands like
pd.options.display.max_rows
. How to do this for output windows? -
Huy Truong about 2 yearsCan you clarify how to use this code? I copied/pasted in a cell, ran the command, but it didn't work for me.
-
NerdOnTour about 2 years@HuyTruong What kind of "didn't work for me" did you get? Can you share the Error message or describe the problematic behaviour otherwise?