@jupyter-notebook/console-extension 7.7.0-alpha.1 → 7.7.0-beta.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 +4 -4
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { IRouter, } from '@jupyterlab/application';
|
|
4
4
|
import { ICommandPalette } from '@jupyterlab/apputils';
|
|
5
5
|
import { IConsoleTracker } from '@jupyterlab/console';
|
|
6
|
-
import {
|
|
6
|
+
import { URLExt } from '@jupyterlab/coreutils';
|
|
7
7
|
import { INotebookTracker } from '@jupyterlab/notebook';
|
|
8
8
|
import { ITranslator, nullTranslator } from '@jupyterlab/translation';
|
|
9
9
|
import { consoleIcon } from '@jupyterlab/ui-components';
|
|
@@ -19,7 +19,7 @@ const opener = {
|
|
|
19
19
|
description: 'A plugin to open consoles in a new tab',
|
|
20
20
|
activate: (app, router) => {
|
|
21
21
|
const { commands } = app;
|
|
22
|
-
const consolePattern = new RegExp('
|
|
22
|
+
const consolePattern = new RegExp('^/consoles/(.*)$');
|
|
23
23
|
const command = 'router:console';
|
|
24
24
|
commands.addCommand(command, {
|
|
25
25
|
execute: (args) => {
|
|
@@ -61,7 +61,7 @@ const redirect = {
|
|
|
61
61
|
autoStart: true,
|
|
62
62
|
description: 'Open consoles in a new tab',
|
|
63
63
|
activate: (app, tracker, notebookPathOpener, notebookShell, notebookTracker) => {
|
|
64
|
-
const baseUrl =
|
|
64
|
+
const baseUrl = app.serviceManager.serverSettings.baseUrl;
|
|
65
65
|
const opener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : defaultNotebookPathOpener;
|
|
66
66
|
tracker.widgetAdded.connect(async (send, console) => {
|
|
67
67
|
var _a, _b, _c, _d;
|
|
@@ -180,7 +180,7 @@ const scratchpadConsole = {
|
|
|
180
180
|
});
|
|
181
181
|
if (palette) {
|
|
182
182
|
palette.addItem({
|
|
183
|
-
category: 'Notebook Console',
|
|
183
|
+
category: trans.__('Notebook Console'),
|
|
184
184
|
command,
|
|
185
185
|
args: { isPalette: true },
|
|
186
186
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyter-notebook/console-extension",
|
|
3
|
-
"version": "7.7.0-
|
|
3
|
+
"version": "7.7.0-beta.0",
|
|
4
4
|
"description": "Jupyter Notebook - Console Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyter/notebook",
|
|
6
6
|
"bugs": {
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"watch": "tsc -b --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@jupyter-notebook/application": "^7.7.0-
|
|
42
|
-
"@jupyterlab/application": "~4.7.0-
|
|
43
|
-
"@jupyterlab/apputils": "~4.8.0-
|
|
44
|
-
"@jupyterlab/console": "~4.7.0-
|
|
45
|
-
"@jupyterlab/coreutils": "~6.7.0-
|
|
46
|
-
"@jupyterlab/notebook": "~4.7.0-
|
|
47
|
-
"@jupyterlab/translation": "~4.7.0-
|
|
48
|
-
"@jupyterlab/ui-components": "~4.7.0-
|
|
41
|
+
"@jupyter-notebook/application": "^7.7.0-beta.0",
|
|
42
|
+
"@jupyterlab/application": "~4.7.0-beta.0",
|
|
43
|
+
"@jupyterlab/apputils": "~4.8.0-beta.0",
|
|
44
|
+
"@jupyterlab/console": "~4.7.0-beta.0",
|
|
45
|
+
"@jupyterlab/coreutils": "~6.7.0-beta.0",
|
|
46
|
+
"@jupyterlab/notebook": "~4.7.0-beta.0",
|
|
47
|
+
"@jupyterlab/translation": "~4.7.0-beta.0",
|
|
48
|
+
"@jupyterlab/ui-components": "~4.7.0-beta.0",
|
|
49
49
|
"@lumino/algorithm": "^2.0.4",
|
|
50
50
|
"@lumino/coreutils": "^2.2.2",
|
|
51
51
|
"@lumino/widgets": "^2.7.2"
|