panel.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "title": "Notebook Panel",
  3. "description": "Notebook Panel settings.",
  4. "jupyter.lab.toolbars": {
  5. "Notebook": [
  6. { "name": "save", "rank": 10 },
  7. {
  8. "name": "insert",
  9. "command": "notebook:insert-cell-below",
  10. "icon": "ui-components:add",
  11. "rank": 20
  12. },
  13. { "name": "cut", "command": "notebook:cut-cell", "rank": 21 },
  14. { "name": "copy", "command": "notebook:copy-cell", "rank": 22 },
  15. { "name": "paste", "command": "notebook:paste-cell-below", "rank": 23 },
  16. { "name": "run", "command": "runmenu:run", "rank": 30 },
  17. { "name": "interrupt", "command": "kernelmenu:interrupt", "rank": 31 },
  18. { "name": "restart", "command": "kernelmenu:restart", "rank": 32 },
  19. {
  20. "name": "restart-and-run",
  21. "command": "runmenu:restart-and-run-all",
  22. "rank": 33
  23. },
  24. { "name": "cellType", "rank": 40 },
  25. { "name": "spacer", "type": "spacer", "rank": 100 },
  26. { "name": "kernelName", "rank": 1000 },
  27. { "name": "kernelStatus", "rank": 1001 },
  28. { "name": "executionProgress", "rank": 1002 }
  29. ]
  30. },
  31. "jupyter.lab.transform": true,
  32. "properties": {
  33. "toolbar": {
  34. "title": "Notebook panel toolbar items",
  35. "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:",
  36. "items": {
  37. "$ref": "#/definitions/toolbarItem"
  38. },
  39. "type": "array",
  40. "default": []
  41. }
  42. },
  43. "additionalProperties": false,
  44. "type": "object",
  45. "definitions": {
  46. "toolbarItem": {
  47. "properties": {
  48. "name": {
  49. "title": "Unique name",
  50. "type": "string"
  51. },
  52. "args": {
  53. "title": "Command arguments",
  54. "type": "object"
  55. },
  56. "command": {
  57. "title": "Command id",
  58. "type": "string",
  59. "default": ""
  60. },
  61. "disabled": {
  62. "title": "Whether the item is ignored or not",
  63. "type": "boolean",
  64. "default": false
  65. },
  66. "icon": {
  67. "title": "Item icon id",
  68. "description": "If defined, it will override the command icon",
  69. "type": "string"
  70. },
  71. "label": {
  72. "title": "Item label",
  73. "description": "If defined, it will override the command label",
  74. "type": "string"
  75. },
  76. "type": {
  77. "title": "Item type",
  78. "type": "string",
  79. "enum": ["command", "spacer"]
  80. },
  81. "rank": {
  82. "title": "Item rank",
  83. "type": "number",
  84. "minimum": 0,
  85. "default": 50
  86. }
  87. },
  88. "required": ["name"],
  89. "additionalProperties": false,
  90. "type": "object"
  91. }
  92. }
  93. }