Jupyterlab: Expose Run Selected Cell and All Below handle for keyboard shortcut creation

Created on 24 Sep 2018  路  3Comments  路  Source: jupyterlab/jupyterlab

_Run Menu_ has _Run Selected Cell and All Below_ as an option. But it doesn't have a keyboard shortcut and I don't see a way to create one because the handle is not listed in _Settings-> System Defaults_ -> _Keyboard Shortcuts_ .

Kindly suggest the name of the handle be included and/or a default keyboard shortcut created.

Thank you for all your work on jupyterlab!

notebook resolved-locked Settings Question

Most helpful comment

Hi @discdiver, the notebook commands that can be bound to keyboard shortcuts can be found here (though we should make them more discoverable):
https://github.com/jupyterlab/jupyterlab/blob/af548c2674427da79d54ad5c4b69bb175463e9a0/packages/notebook-extension/src/index.ts#L69-L197

You will want to add a shortcut for 'notebook:run-all-below'.

All 3 comments

Hi @discdiver, the notebook commands that can be bound to keyboard shortcuts can be found here (though we should make them more discoverable):
https://github.com/jupyterlab/jupyterlab/blob/af548c2674427da79d54ad5c4b69bb175463e9a0/packages/notebook-extension/src/index.ts#L69-L197

You will want to add a shortcut for 'notebook:run-all-below'.

Thanks @ian-r-rose. Here's what the full working code looks like if anyone find this:

```//
{
"notebook:run-all-below": {
"command": "notebook:run-all-below",
"keys": [
"Shift D"
],
"selector": ".jp-Notebook:focus",
"title": "Run All Below",
"category": "Notebook Cell Operations"
}
}

Glad you got it working @discdiver! Closing as answered.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madx picture madx  路  3Comments

hainm picture hainm  路  3Comments

PhilosopherZ picture PhilosopherZ  路  3Comments

blink1073 picture blink1073  路  3Comments

ellisonbg picture ellisonbg  路  3Comments