Jupyter / python graph display size

You generally just left-click in space to the left side of the plots but in the box and it will expand to show all.

If you save the notebook and look in the code for the two versions, you’ll see this setting gets saved in the metadata for the cell. Here is when you need to scroll:

metadata": {
    "scrolled": true

Here is the code when it is expanded:

metadata": {
    "scrolled": false

Related extensions and options for the classic notebook may make your experience better, see here and the bottom of here.

Generally, JupyterLab is a better experience.
For an example, run this code in JupyterLab vs the classic notebook:

for n in range(165):
    print(n)

(If you don’t have JupyterLab installed, you can run it in your browser without needed to install anything by going here and clicking launch binder to spin up a temporary session served by the MyBinder service.)

You’ll see with JupyterLab, the output has no scrollbars added. In the classic notebook the mode with scrollbars get triggered automatically with output that long and you need to toggle them back off by left-clicking just to the left side of the list of numbers.

With JupyterLab you can opt in to the scrolling output by selecting output and right-clicking on it and selecting Enable ... or Disable Scrolling for Outputs.

2 Likes