Skip to content Skip to sidebar Skip to footer

Is There A Way To Toggle Cell Output In Jupyter Lab?

In Jupyter Notebook you can toggle the cell output by going into command mode and pressing 'O'. This command does not work on Jupyter Lab, and I don't see an option to add it. Is t

Solution 1:

In Jupyter Notebook you could easily just double click on the cell output to hide it.

This doesn't appear to work in Labs.

Labs has functionality to set keyboard shortcuts.

Settings>Adv Settings> Keyboard Shortcuts You can then add your own shortcut. This example uses "H".

{    "shortcuts": [

//First you can optionally make room for your new hotkey if it is taken. // {// "command": "imageviewer:flip-horizontal",// "keys": [// "H"// ],// "selector": ".jp-ImageViewer",// "disabled": true// },// Then assign a new hotkey
{
"command": "notebook:hide-cell-outputs",
"keys": [
"H"
],
"selector": ".jp-Notebook:focus",
"disabled": false
}

]
}

Solution 2:

As Arkady said, this looks like a duplicate from this post. Note, you can also do this in the sidebar if you don't want to code it.

enter image description here

Post a Comment for "Is There A Way To Toggle Cell Output In Jupyter Lab?"