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

Share:
11,871
Admin
Author by

Admin

Updated on July 13, 2022

Comments

  • Admin
    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()
    

    Creates a window like this: enter image description here

    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
    Huy Truong about 2 years
    Can you clarify how to use this code? I copied/pasted in a cell, ran the command, but it didn't work for me.
  • NerdOnTour
    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?