This question is related to this question:
In Jupyter Lab, execute editor code in Python console
I would like to update the shortcut to execute code from the editor to the console. The default one is Shift + Enter. But I have tried to update couple of the default shortcut and can't get the one that does execute the code from the editor to the terminal.
WARNING: One of the answer suggest using :
{
// List of Keyboard Shortcuts
"shortcuts": [
{
"command": "notebook:run-in-console",
"keys": [
"F9"
],
"selector": ".jp-Notebook.jp-mod-editMode"
},
]
}
But this is not what I want as this one is to run code from a .ipynb (notebook) to the console and not the editor (.py) to the console.