@jupyter-notebook/notebook-extension 7.0.5 → 7.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +12 -3
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Jupyter Development Team.
|
|
2
2
|
// Distributed under the terms of the Modified BSD License.
|
|
3
3
|
import { DOMUtils, IToolbarWidgetRegistry, } from '@jupyterlab/apputils';
|
|
4
|
-
import { Text, Time } from '@jupyterlab/coreutils';
|
|
4
|
+
import { PageConfig, Text, Time, URLExt } from '@jupyterlab/coreutils';
|
|
5
5
|
import { IDocumentManager } from '@jupyterlab/docmanager';
|
|
6
6
|
import { IMainMenu } from '@jupyterlab/mainmenu';
|
|
7
7
|
import { NotebookPanel, INotebookTracker, INotebookTools, } from '@jupyterlab/notebook';
|
|
@@ -36,6 +36,7 @@ const SCROLLED_OUTPUTS_CLASS = 'jp-mod-outputsScrolled';
|
|
|
36
36
|
*/
|
|
37
37
|
const checkpoints = {
|
|
38
38
|
id: '@jupyter-notebook/notebook-extension:checkpoints',
|
|
39
|
+
description: 'A plugin for the checkpoint indicator.',
|
|
39
40
|
autoStart: true,
|
|
40
41
|
requires: [IDocumentManager, ITranslator],
|
|
41
42
|
optional: [INotebookShell, IToolbarWidgetRegistry],
|
|
@@ -85,6 +86,7 @@ const checkpoints = {
|
|
|
85
86
|
*/
|
|
86
87
|
const closeTab = {
|
|
87
88
|
id: '@jupyter-notebook/notebook-extension:close-tab',
|
|
89
|
+
description: 'Add a command to close the browser tab when clicking on "Close and Shut Down".',
|
|
88
90
|
autoStart: true,
|
|
89
91
|
requires: [IMainMenu],
|
|
90
92
|
optional: [ITranslator],
|
|
@@ -113,6 +115,7 @@ const closeTab = {
|
|
|
113
115
|
*/
|
|
114
116
|
const kernelLogo = {
|
|
115
117
|
id: '@jupyter-notebook/notebook-extension:kernel-logo',
|
|
118
|
+
description: 'The kernel logo plugin.',
|
|
116
119
|
autoStart: true,
|
|
117
120
|
requires: [INotebookShell],
|
|
118
121
|
optional: [IToolbarWidgetRegistry],
|
|
@@ -163,6 +166,7 @@ const kernelLogo = {
|
|
|
163
166
|
*/
|
|
164
167
|
const kernelStatus = {
|
|
165
168
|
id: '@jupyter-notebook/notebook-extension:kernel-status',
|
|
169
|
+
description: 'A plugin to display the kernel status.',
|
|
166
170
|
autoStart: true,
|
|
167
171
|
requires: [INotebookShell, ITranslator],
|
|
168
172
|
activate: (app, shell, translator) => {
|
|
@@ -218,6 +222,7 @@ const kernelStatus = {
|
|
|
218
222
|
*/
|
|
219
223
|
const scrollOutput = {
|
|
220
224
|
id: '@jupyter-notebook/notebook-extension:scroll-output',
|
|
225
|
+
description: 'A plugin to enable scrolling for outputs by default.',
|
|
221
226
|
autoStart: true,
|
|
222
227
|
requires: [INotebookTracker],
|
|
223
228
|
optional: [ISettingRegistry],
|
|
@@ -292,6 +297,7 @@ const scrollOutput = {
|
|
|
292
297
|
*/
|
|
293
298
|
const notebookToolsWidget = {
|
|
294
299
|
id: '@jupyter-notebook/notebook-extension:notebook-tools',
|
|
300
|
+
description: 'A plugin to add the NotebookTools to the side panel.',
|
|
295
301
|
autoStart: true,
|
|
296
302
|
requires: [INotebookShell],
|
|
297
303
|
optional: [INotebookTools],
|
|
@@ -314,12 +320,14 @@ const notebookToolsWidget = {
|
|
|
314
320
|
*/
|
|
315
321
|
const tabIcon = {
|
|
316
322
|
id: '@jupyter-notebook/notebook-extension:tab-icon',
|
|
323
|
+
description: 'A plugin to update the tab icon based on the kernel status.',
|
|
317
324
|
autoStart: true,
|
|
318
325
|
requires: [INotebookTracker],
|
|
319
326
|
activate: (app, tracker) => {
|
|
320
327
|
// the favicons are provided by Jupyter Server
|
|
321
|
-
const
|
|
322
|
-
const
|
|
328
|
+
const baseURL = PageConfig.getBaseUrl();
|
|
329
|
+
const notebookIcon = URLExt.join(baseURL, 'static/favicons/favicon-notebook.ico');
|
|
330
|
+
const busyIcon = URLExt.join(baseURL, 'static/favicons/favicon-busy-1.ico');
|
|
323
331
|
const updateBrowserFavicon = (status) => {
|
|
324
332
|
const link = document.querySelector("link[rel*='icon']");
|
|
325
333
|
switch (status) {
|
|
@@ -350,6 +358,7 @@ const tabIcon = {
|
|
|
350
358
|
*/
|
|
351
359
|
const trusted = {
|
|
352
360
|
id: '@jupyter-notebook/notebook-extension:trusted',
|
|
361
|
+
description: 'A plugin that adds a Trusted indicator to the menu area.',
|
|
353
362
|
autoStart: true,
|
|
354
363
|
requires: [INotebookShell, ITranslator],
|
|
355
364
|
activate: (app, notebookShell, translator) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/notebook-extension",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.1.0-alpha.0",
|
|
4
4
|
"description": "Jupyter Notebook - Notebook Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"watch": "tsc -b --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jupyter-notebook/application": "^7.0.
|
|
42
|
-
"@jupyterlab/application": "^4.0.
|
|
43
|
-
"@jupyterlab/apputils": "^4.
|
|
44
|
-
"@jupyterlab/cells": "^4.0.
|
|
45
|
-
"@jupyterlab/docmanager": "^4.0.
|
|
46
|
-
"@jupyterlab/notebook": "^4.0.
|
|
47
|
-
"@jupyterlab/settingregistry": "^4.0.
|
|
48
|
-
"@jupyterlab/translation": "^4.0.
|
|
41
|
+
"@jupyter-notebook/application": "^7.1.0-alpha.0",
|
|
42
|
+
"@jupyterlab/application": "^4.1.0-alpha.2",
|
|
43
|
+
"@jupyterlab/apputils": "^4.2.0-alpha.2",
|
|
44
|
+
"@jupyterlab/cells": "^4.1.0-alpha.2",
|
|
45
|
+
"@jupyterlab/docmanager": "^4.1.0-alpha.2",
|
|
46
|
+
"@jupyterlab/notebook": "^4.1.0-alpha.2",
|
|
47
|
+
"@jupyterlab/settingregistry": "^4.1.0-alpha.2",
|
|
48
|
+
"@jupyterlab/translation": "^4.1.0-alpha.2",
|
|
49
49
|
"@lumino/polling": "^2.1.2",
|
|
50
|
-
"@lumino/widgets": "^2.3.0",
|
|
50
|
+
"@lumino/widgets": "^2.3.1-alpha.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0"
|
|
53
53
|
},
|