1

Following the instruction to create custom shortcuts in Jupyter Lab, I've got the hide and show work but not the one to clear cell output (the first command entry). Does anyone know what the issue is? Thank you!

{
  "shortcuts": [
    {
      "command": "notebook:clear-cell-outputs",
      "keys": [
        "Ctrl L"
      ],
      "selector": ".jp-Notebook:focus"
    },  

    {
      "command": "notebook:hide-cell-outputs",
      "keys": [
        "O"
      ],
      "selector": ".jp-Notebook:focus"
    },  

    {
      "command": "notebook:show-cell-outputs",
      "keys": [
        "Shift O"
      ],
      "selector": ".jp-Notebook:focus"
    }
  ]
}
Nemo
  • 1,124
  • 2
  • 16
  • 39

1 Answers1

1

The correct command to use is notebook:clear-cell-output (no "s" at the end). The complete command list can be found here.

pzecevic
  • 2,807
  • 22
  • 21
  • Thanks for taking time to answer the question. It seemed like a small error/inconsistency by the developers as there was a `s` in both `notebook:show-cell-outputs` and `notebook:show-all-cell-outputs`! – Nemo Sep 23 '20 at 22:28