skip to Main Content

I have a Jupyter Notebook where the output from every cell has suddenly been collapsed (I must have done something, so automatically collapse all cells at once).

Here is an example of what I mean by a collapsed cell using the below code: screenshot of collapsed output

print('Why am I collapsed?')

The output can be un-collapsed by pressing the lower and smaller blue bar: screenshot of uncollapsed output

My notebook is quite long, so I would like to un-collapse every cell at once instead of having to press the un-collapse button/bar on every single cell.

2

Answers


  1. Use the Notebook: Expand All Outputs command in the command palette. If you want to bind it to a keyboard shortcut, its command ID is notebook.cell.expandAllCellOutputs.

    Note that there is also a command to expand all cell inputs (notebook.cell.expandAllCellInputs).

    Login or Signup to reply.
  2. I have the same problem: all of a sudden all output cells are collapsed.
    But it is worse: I cannot expand them by clicking on the small bar, and the command Notebook: Expand All Outputs does not work, either.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search