Keyboard shortcut to clear cell output in Jupyter notebook

后端 未结 6 1668
误落风尘
误落风尘 2020-12-07 15:49

Does anyone know what is the keyboard shortcut to clear (not toggle) the cell output in Jupyter Notebook?

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 16:08

    Just adding in for JupyterLab users. Ctrl, (advanced settings) and pasting the below in User References under keyboard shortcuts does the trick for me.

    {
    "shortcuts": [
            {
                "command": "notebook:hide-cell-outputs",
                "keys": [
                    "H"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:show-cell-outputs",
                "keys": [
                    "Shift H"
                ],
                "selector": ".jp-Notebook:focus"
            }
        ]
    }
    

提交回复
热议问题