tracker.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. {
  2. "title": "Code Console",
  3. "description": "Code Console settings.",
  4. "jupyter.lab.setting-icon": "ui-components:console",
  5. "jupyter.lab.setting-icon-label": "Code Console Settings",
  6. "jupyter.lab.menus": {
  7. "main": [
  8. {
  9. "id": "jp-mainmenu-file",
  10. "items": [
  11. {
  12. "type": "submenu",
  13. "submenu": {
  14. "id": "jp-mainmenu-file-new",
  15. "items": [
  16. {
  17. "command": "console:create",
  18. "rank": 1
  19. }
  20. ]
  21. }
  22. }
  23. ]
  24. },
  25. {
  26. "id": "jp-mainmenu-settings",
  27. "items": [
  28. {
  29. "type": "separator",
  30. "rank": 9
  31. },
  32. {
  33. "type": "submenu",
  34. "submenu": {
  35. "id": "jp-mainmenu-settings-consoleexecute",
  36. "label": "Console Run Keystroke",
  37. "items": [
  38. {
  39. "command": "console:interaction-mode",
  40. "args": {
  41. "interactionMode": "terminal"
  42. }
  43. },
  44. {
  45. "command": "console:interaction-mode",
  46. "args": {
  47. "interactionMode": "notebook"
  48. }
  49. }
  50. ]
  51. },
  52. "rank": 9
  53. },
  54. {
  55. "type": "separator",
  56. "rank": 9
  57. }
  58. ]
  59. }
  60. ],
  61. "context": [
  62. {
  63. "command": "console:undo",
  64. "selector": ".jp-CodeConsole-promptCell",
  65. "rank": 1
  66. },
  67. {
  68. "command": "console:redo",
  69. "selector": ".jp-CodeConsole-promptCell",
  70. "rank": 2
  71. },
  72. {
  73. "command": "console:clear",
  74. "selector": ".jp-CodeConsole-content",
  75. "rank": 10
  76. },
  77. {
  78. "command": "console:restart-kernel",
  79. "selector": ".jp-CodeConsole",
  80. "rank": 30
  81. }
  82. ]
  83. },
  84. "jupyter.lab.shortcuts": [
  85. {
  86. "command": "console:run-forced",
  87. "keys": ["Shift Enter"],
  88. "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell"
  89. },
  90. {
  91. "command": "console:linebreak",
  92. "keys": ["Accel Enter"],
  93. "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
  94. },
  95. {
  96. "command": "console:run-forced",
  97. "keys": ["Shift Enter"],
  98. "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
  99. },
  100. {
  101. "command": "console:run-unforced",
  102. "keys": ["Enter"],
  103. "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
  104. }
  105. ],
  106. "jupyter.lab.toolbars": {
  107. "ConsolePanel": [
  108. {
  109. "name": "run",
  110. "command": "console:run-forced",
  111. "rank": 0
  112. },
  113. { "name": "restart", "command": "console:restart-kernel", "rank": 10 },
  114. { "name": "clear", "command": "console:clear", "rank": 20 },
  115. { "name": "spacer", "type": "spacer", "rank": 100 },
  116. { "name": "kernelName", "rank": 1000 },
  117. { "name": "kernelStatus", "rank": 1010 },
  118. { "name": "promptPosition", "rank": 1020 }
  119. ]
  120. },
  121. "jupyter.lab.transform": true,
  122. "properties": {
  123. "clearCellsOnExecute": {
  124. "title": "Clear Cells on Execute",
  125. "description": "Whether to clear the console when code is executed.",
  126. "type": "boolean",
  127. "default": false
  128. },
  129. "clearCodeContentOnExecute": {
  130. "title": "Clear Code Content on Execute",
  131. "description": "Whether to clear the code content of the console when code is executed.",
  132. "type": "boolean",
  133. "default": true
  134. },
  135. "hideCodeInput": {
  136. "title": "Hide Code Input",
  137. "description": "Whether to hide the code input after a cell is executed.",
  138. "type": "boolean",
  139. "default": false
  140. },
  141. "interactionMode": {
  142. "title": "Interaction mode",
  143. "description": "Whether the console interaction mimics the notebook\nor terminal keyboard shortcuts.",
  144. "type": "string",
  145. "enum": ["notebook", "terminal"],
  146. "default": "notebook"
  147. },
  148. "showAllKernelActivity": {
  149. "title": "Show All Kernel Activity",
  150. "description": "Whether the console defaults to showing all\nkernel activity or just kernel activity originating from itself.",
  151. "type": "boolean",
  152. "default": false
  153. },
  154. "promptCellConfig": {
  155. "title": "Prompt Cell Configuration",
  156. "description": "The configuration for all prompt cells; it will override the CodeMirror default configuration.",
  157. "type": "object",
  158. "default": {
  159. "codeFolding": false,
  160. "lineNumbers": false
  161. }
  162. },
  163. "promptCellPosition": {
  164. "title": "Prompt Cell Position",
  165. "description": "Where to place the prompt cell of the console.",
  166. "type": "string",
  167. "oneOf": [
  168. { "const": "bottom", "title": "Bottom" },
  169. { "const": "top", "title": "Top" },
  170. { "const": "left", "title": "Left" },
  171. { "const": "right", "title": "Right" }
  172. ],
  173. "default": "bottom"
  174. },
  175. "showBanner": {
  176. "title": "Show Banner",
  177. "description": "Whether to show the kernel banner.",
  178. "type": "boolean",
  179. "default": true
  180. },
  181. "toolbar": {
  182. "title": "Console panel toolbar items",
  183. "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the Interrupt button item:\n{\n \"toolbar\": [\n {\n \"name\": \"interrupt\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:",
  184. "items": {
  185. "$ref": "#/definitions/toolbarItem"
  186. },
  187. "type": "array",
  188. "default": []
  189. }
  190. },
  191. "additionalProperties": false,
  192. "type": "object",
  193. "definitions": {
  194. "toolbarItem": {
  195. "properties": {
  196. "name": {
  197. "title": "Unique name",
  198. "type": "string"
  199. },
  200. "args": {
  201. "title": "Command arguments",
  202. "type": "object"
  203. },
  204. "command": {
  205. "title": "Command id",
  206. "type": "string",
  207. "default": ""
  208. },
  209. "disabled": {
  210. "title": "Whether the item is ignored or not",
  211. "type": "boolean",
  212. "default": false
  213. },
  214. "icon": {
  215. "title": "Item icon id",
  216. "description": "If defined, it will override the command icon",
  217. "type": "string"
  218. },
  219. "label": {
  220. "title": "Item label",
  221. "description": "If defined, it will override the command label",
  222. "type": "string"
  223. },
  224. "caption": {
  225. "title": "Item caption",
  226. "description": "If defined, it will override the command caption",
  227. "type": "string"
  228. },
  229. "type": {
  230. "title": "Item type",
  231. "type": "string",
  232. "enum": ["command", "spacer"]
  233. },
  234. "rank": {
  235. "title": "Item rank",
  236. "type": "number",
  237. "minimum": 0,
  238. "default": 50
  239. }
  240. },
  241. "required": ["name"],
  242. "additionalProperties": false,
  243. "type": "object"
  244. }
  245. }
  246. }