plugin.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "jupyter.lab.setting-icon": "ui-components:list",
  3. "jupyter.lab.setting-icon-label": "Log Console",
  4. "jupyter.lab.menus": {
  5. "main": [
  6. {
  7. "id": "jp-mainmenu-view",
  8. "items": [
  9. {
  10. "type": "separator",
  11. "rank": 9.9
  12. },
  13. {
  14. "command": "logconsole:open",
  15. "rank": 9.95
  16. },
  17. {
  18. "type": "separator",
  19. "rank": 9.99
  20. }
  21. ]
  22. }
  23. ],
  24. "context": [
  25. { "command": "logconsole:open", "selector": ".jp-Notebook", "rank": 60 }
  26. ]
  27. },
  28. "title": "Log Console",
  29. "description": "Log Console settings.",
  30. "jupyter.lab.toolbars": {
  31. "LogConsole": [
  32. {
  33. "name": "add-checkpoint",
  34. "command": "logconsole:add-checkpoint",
  35. "rank": 10
  36. },
  37. { "name": "clear", "command": "logconsole:clear", "rank": 20 },
  38. { "name": "set-level", "command": "logconsole:set-level", "rank": 30 }
  39. ]
  40. },
  41. "jupyter.lab.transform": true,
  42. "properties": {
  43. "maxLogEntries": {
  44. "type": "number",
  45. "title": "Log entry count limit",
  46. "description": "Maximum number of log entries to store in memory",
  47. "default": 1000
  48. },
  49. "flash": {
  50. "type": "boolean",
  51. "title": "Status Bar Item flash",
  52. "description": "Whether to flash on new log message or not",
  53. "default": true
  54. },
  55. "defaultLogLevel": {
  56. "type": "string",
  57. "title": "Default Log Level",
  58. "description": "Default log level for loggers",
  59. "oneOf": [
  60. { "const": "critical", "title": "Critical" },
  61. { "const": "error", "title": "Error" },
  62. { "const": "warning", "title": "Warning" },
  63. { "const": "info", "title": "Info" },
  64. { "const": "debug", "title": "Debug" }
  65. ],
  66. "default": "warning"
  67. },
  68. "toolbar": {
  69. "title": "Log console toolbar items",
  70. "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the clear button:\n{\n \"toolbar\": [\n {\n \"name\": \"clear\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:",
  71. "items": {
  72. "$ref": "#/definitions/toolbarItem"
  73. },
  74. "type": "array",
  75. "default": []
  76. }
  77. },
  78. "additionalProperties": false,
  79. "type": "object",
  80. "definitions": {
  81. "toolbarItem": {
  82. "properties": {
  83. "name": {
  84. "title": "Unique name",
  85. "type": "string"
  86. },
  87. "args": {
  88. "title": "Command arguments",
  89. "type": "object"
  90. },
  91. "command": {
  92. "title": "Command id",
  93. "type": "string",
  94. "default": ""
  95. },
  96. "disabled": {
  97. "title": "Whether the item is ignored or not",
  98. "type": "boolean",
  99. "default": false
  100. },
  101. "icon": {
  102. "title": "Item icon id",
  103. "description": "If defined, it will override the command icon",
  104. "type": "string"
  105. },
  106. "label": {
  107. "title": "Item label",
  108. "description": "If defined, it will override the command label",
  109. "type": "string"
  110. },
  111. "caption": {
  112. "title": "Item caption",
  113. "description": "If defined, it will override the command caption",
  114. "type": "string"
  115. },
  116. "type": {
  117. "title": "Item type",
  118. "type": "string",
  119. "enum": ["command", "spacer"]
  120. },
  121. "rank": {
  122. "title": "Item rank",
  123. "type": "number",
  124. "minimum": 0,
  125. "default": 50
  126. }
  127. },
  128. "required": ["name"],
  129. "additionalProperties": false,
  130. "type": "object"
  131. }
  132. }
  133. }