jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.41k stars 4.76k forks source link

`o` no longer toggles showing/hiding the output of a cell #7366

Open JasonWeill opened 2 months ago

JasonWeill commented 2 months ago

o no longer toggles showing/hiding the output of a cell, and I don't see any way to add this

Originally filed by @jph00 in #7041, referring to a regression from Jupyter Notebook 6 to 7.

JasonWeill commented 2 months ago

In nbclassic, based on Notebook 6, the o command takes a cell with output:

image

… and collapses the output:

image

jtpio commented 1 month ago

Maybe there could be a new command in JupyterLab for toggling the cell output, similar to the existing ones for collapsing and expanding the outputs:

image

That way the command would also be available in Notebook 7, and could be associated with a keyboard shortcut.