notebook icon indicating copy to clipboard operation
notebook copied to clipboard

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

Open JasonWeill opened this issue 1 year ago • 4 comments
trafficstars

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 avatar May 13 '24 23:05 JasonWeill

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

image

… and collapses the output:

image

JasonWeill avatar May 17 '24 17:05 JasonWeill

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.

jtpio avatar May 30 '24 06:05 jtpio

https://github.com/jupyterlab/jupyterlab/pull/16833 is now merged into JupyterLab's codebase. When this is released, likely as part of JupyterLab 4.3.0, we can update Jupyter Notebook's dependency and add a default o shortcut bound to the new command, notebook:toggle-cell-outputs.

JasonWeill avatar Oct 07 '24 17:10 JasonWeill

Thanks @JasonWeill for working on this!

jtpio avatar Oct 07 '24 17:10 jtpio