133 lines
3.6 KiB
JSON
133 lines
3.6 KiB
JSON
{
|
|
"title": "Code Console",
|
|
"description": "Code Console settings.",
|
|
"jupyter.lab.setting-icon": "ui-components:console",
|
|
"jupyter.lab.setting-icon-label": "Code Console Settings",
|
|
"jupyter.lab.menus": {
|
|
"main": [
|
|
{
|
|
"id": "jp-mainmenu-file",
|
|
"items": [
|
|
{
|
|
"type": "submenu",
|
|
"submenu": {
|
|
"id": "jp-mainmenu-file-new",
|
|
"items": [
|
|
{
|
|
"command": "console:create",
|
|
"rank": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "jp-mainmenu-settings",
|
|
"items": [
|
|
{
|
|
"type": "separator",
|
|
"rank": 9
|
|
},
|
|
{
|
|
"type": "submenu",
|
|
"submenu": {
|
|
"id": "jp-mainmenu-settings-consoleexecute",
|
|
"label": "Console Run Keystroke",
|
|
"items": [
|
|
{
|
|
"command": "console:interaction-mode",
|
|
"args": {
|
|
"interactionMode": "terminal"
|
|
}
|
|
},
|
|
{
|
|
"command": "console:interaction-mode",
|
|
"args": {
|
|
"interactionMode": "notebook"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"rank": 9
|
|
},
|
|
{
|
|
"type": "separator",
|
|
"rank": 9
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"context": [
|
|
{
|
|
"command": "console:undo",
|
|
"selector": ".jp-CodeConsole-promptCell",
|
|
"rank": 1
|
|
},
|
|
{
|
|
"command": "console:redo",
|
|
"selector": ".jp-CodeConsole-promptCell",
|
|
"rank": 2
|
|
},
|
|
{
|
|
"command": "console:clear",
|
|
"selector": ".jp-CodeConsole-content",
|
|
"rank": 10
|
|
},
|
|
{
|
|
"command": "console:restart-kernel",
|
|
"selector": ".jp-CodeConsole",
|
|
"rank": 30
|
|
}
|
|
]
|
|
},
|
|
"jupyter.lab.shortcuts": [
|
|
{
|
|
"command": "console:run-forced",
|
|
"keys": ["Shift Enter"],
|
|
"selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell"
|
|
},
|
|
{
|
|
"command": "console:linebreak",
|
|
"keys": ["Accel Enter"],
|
|
"selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
|
|
},
|
|
{
|
|
"command": "console:run-forced",
|
|
"keys": ["Shift Enter"],
|
|
"selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
|
|
},
|
|
{
|
|
"command": "console:run-unforced",
|
|
"keys": ["Enter"],
|
|
"selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
|
|
}
|
|
],
|
|
"properties": {
|
|
"interactionMode": {
|
|
"title": "Interaction mode",
|
|
"description": "Whether the console interaction mimics the notebook\nor terminal keyboard shortcuts.",
|
|
"type": "string",
|
|
"enum": ["notebook", "terminal"],
|
|
"default": "notebook"
|
|
},
|
|
"showAllKernelActivity": {
|
|
"title": "Show All Kernel Activity",
|
|
"description": "Whether the console defaults to showing all\nkernel activity or just kernel activity originating from itself.",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"promptCellConfig": {
|
|
"title": "Prompt Cell Configuration",
|
|
"description": "The configuration for all prompt cells; it will override the CodeMirror default configuration.",
|
|
"type": "object",
|
|
"default": {
|
|
"codeFolding": false,
|
|
"lineNumbers": false
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"type": "object"
|
|
}
|