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
Use the
Notebook: Expand All Outputs
command in the command palette. If you want to bind it to a keyboard shortcut, its command ID isnotebook.cell.expandAllCellOutputs
.Note that there is also a command to expand all cell inputs (
notebook.cell.expandAllCellInputs
).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.