9

For some reasons my new Jupyter notebooks seems to be collapsing the output if large figures are plotted with matplotlib.

Pic attached:

enter image description here

I want to display the pictures in full, i.e. without the scrolling bar to the right side. How do I achieve this?

  • Does this answer your question? [resize ipython notebook output window](https://stackoverflow.com/questions/18770504/resize-ipython-notebook-output-window) – Warm_Duscher Jan 25 '23 at 19:37

2 Answers2

21

There is a shortcut for that: use o (that is the letter o) in the command mode to expand/collapse. Or capital O to switch between scrolling/expanded output. See menu > help > Keyboard Shortcuts.

enter image description here

Aziz Alto
  • 19,057
  • 5
  • 77
  • 60
  • There is something deeper than this. I have cases where the plots generated are still not viewable even with the "expanded" output and no-scrolling. In such cases there remains a scroll bar within the output block. – yeliabsalohcin Oct 29 '18 at 16:03
  • 1
    That "deeper" issue is related to ipywidgets as they have their own scrolling within the output cell causing. See https://github.com/jupyter-widgets/ipywidgets/issues/1791 – yeliabsalohcin Oct 29 '18 at 16:10
14

Point mouse cursor in the blank area (usually white) on the left side of the output part of the cell, then click.

Each click will toggle the status of the output area between semi-collapse and full-expand.

You can double-click to toggle between full-collapse and full-expand.

swatchai
  • 17,400
  • 3
  • 39
  • 58