@jupyter-notebook/lab-extension 7.4.0-alpha.1 → 7.4.0-alpha.3
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 +6 -1
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -37,8 +37,9 @@ const interfaceSwitcher = {
|
|
|
37
37
|
id: '@jupyter-notebook/lab-extension:interface-switcher',
|
|
38
38
|
description: 'A plugin to add custom toolbar items to the notebook page.',
|
|
39
39
|
autoStart: true,
|
|
40
|
-
requires: [ITranslator
|
|
40
|
+
requires: [ITranslator],
|
|
41
41
|
optional: [
|
|
42
|
+
INotebookTracker,
|
|
42
43
|
ICommandPalette,
|
|
43
44
|
INotebookPathOpener,
|
|
44
45
|
INotebookShell,
|
|
@@ -46,6 +47,10 @@ const interfaceSwitcher = {
|
|
|
46
47
|
IToolbarWidgetRegistry,
|
|
47
48
|
],
|
|
48
49
|
activate: (app, translator, notebookTracker, palette, notebookPathOpener, notebookShell, labShell, toolbarRegistry) => {
|
|
50
|
+
if (!notebookTracker) {
|
|
51
|
+
// bail if trying to use this plugin without a notebook tracker
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
49
54
|
const { commands, shell } = app;
|
|
50
55
|
const baseUrl = PageConfig.getBaseUrl();
|
|
51
56
|
const trans = translator.load('notebook');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/lab-extension",
|
|
3
|
-
"version": "7.4.0-alpha.
|
|
3
|
+
"version": "7.4.0-alpha.3",
|
|
4
4
|
"description": "Jupyter Notebook - Lab Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"watch:src": "tsc -w"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@jupyter-notebook/application": "^7.4.0-alpha.
|
|
47
|
-
"@jupyterlab/application": "~4.4.0-alpha.
|
|
48
|
-
"@jupyterlab/apputils": "~4.5.0-alpha.
|
|
49
|
-
"@jupyterlab/coreutils": "~6.4.0-alpha.
|
|
50
|
-
"@jupyterlab/docregistry": "~4.4.0-alpha.
|
|
51
|
-
"@jupyterlab/notebook": "~4.4.0-alpha.
|
|
52
|
-
"@jupyterlab/translation": "~4.4.0-alpha.
|
|
53
|
-
"@jupyterlab/ui-components": "~4.4.0-alpha.
|
|
46
|
+
"@jupyter-notebook/application": "^7.4.0-alpha.3",
|
|
47
|
+
"@jupyterlab/application": "~4.4.0-alpha.3",
|
|
48
|
+
"@jupyterlab/apputils": "~4.5.0-alpha.3",
|
|
49
|
+
"@jupyterlab/coreutils": "~6.4.0-alpha.3",
|
|
50
|
+
"@jupyterlab/docregistry": "~4.4.0-alpha.3",
|
|
51
|
+
"@jupyterlab/notebook": "~4.4.0-alpha.3",
|
|
52
|
+
"@jupyterlab/translation": "~4.4.0-alpha.3",
|
|
53
|
+
"@jupyterlab/ui-components": "~4.4.0-alpha.3",
|
|
54
54
|
"@lumino/commands": "^2.3.1",
|
|
55
55
|
"@lumino/disposable": "^2.1.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@jupyterlab/builder": "~4.4.0-alpha.
|
|
58
|
+
"@jupyterlab/builder": "~4.4.0-alpha.3",
|
|
59
59
|
"rimraf": "^3.0.2",
|
|
60
60
|
"typescript": "~5.1.6"
|
|
61
61
|
},
|