@difizen/libro-jupyter 0.1.19 → 0.1.21
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LibroModel, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
2
1
|
import type { VirtualizedManager } from '@difizen/libro-core';
|
|
2
|
+
import { LibroModel, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
3
3
|
import { ContentsManager, ExecutableNotebookModel, LibroKernelConnectionManager, ServerConnection, ServerManager } from '@difizen/libro-kernel';
|
|
4
4
|
import type { IKernelConnection } from '@difizen/libro-kernel';
|
|
5
5
|
import type { IContentsCheckpointModel, IContentsModel } from '@difizen/libro-kernel';
|
|
@@ -10,6 +10,7 @@ type IModel = IContentsModel;
|
|
|
10
10
|
export declare class LibroJupyterModel extends LibroModel implements ExecutableNotebookModel {
|
|
11
11
|
static is: (arg: Record<any, any> | undefined) => arg is LibroJupyterModel;
|
|
12
12
|
protected libroFileService: LibroFileService;
|
|
13
|
+
protected virtualizedManager: VirtualizedManager;
|
|
13
14
|
get fileService(): LibroFileService;
|
|
14
15
|
currentFileContents: IModel;
|
|
15
16
|
protected kernelSelect: string;
|
|
@@ -21,7 +22,6 @@ export declare class LibroJupyterModel extends LibroModel implements ExecutableN
|
|
|
21
22
|
protected serverConnection: ServerConnection;
|
|
22
23
|
protected readonly contentsManager: ContentsManager;
|
|
23
24
|
protected readonly modalService: ModalService;
|
|
24
|
-
protected virtualizedManager: VirtualizedManager;
|
|
25
25
|
constructor(libroFileService: LibroFileService, kernelConnectionManager: LibroKernelConnectionManager, serverManager: ServerManager, serverConnection: ServerConnection, contentsManager: ContentsManager, modalService: ModalService, virtualizedManagerHelper: VirtualizedManagerHelper);
|
|
26
26
|
get isKernelIdle(): boolean | undefined;
|
|
27
27
|
get kernelSelection(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-jupyter-model.d.ts","sourceRoot":"","sources":["../src/libro-jupyter-model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"libro-jupyter-model.d.ts","sourceRoot":"","sources":["../src/libro-jupyter-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EACL,eAAe,EACf,uBAAuB,EAEvB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAa,YAAY,EAAQ,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,OAAO,EAGL,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAIrC,KAAK,MAAM,GAAG,cAAc,CAAC;AAC7B,qBACa,iBAAkB,SAAQ,UAAW,YAAW,uBAAuB;IAClF,MAAM,CAAC,EAAE,QAAS,OAAO,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,8BAS5C;IAEF,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC7C,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAEjD,IAAI,WAAW,qBAEd;IAGD,mBAAmB,EAAE,MAAM,CAAC;IAE5B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAE/B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAE/B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IAGrC,UAAU,UAAQ;IAElB,SAAS,CAAC,uBAAuB,EAAE,4BAA4B,CAAC;IAChE,SAAS,CAAC,aAAa,EAAE,aAA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
40
40
|
_this.libroFileService = void 0;
|
|
41
|
+
_this.virtualizedManager = void 0;
|
|
41
42
|
_initializerDefineProperty(_this, "currentFileContents", _descriptor, _assertThisInitialized(_this));
|
|
42
43
|
_initializerDefineProperty(_this, "kernelSelect", _descriptor2, _assertThisInitialized(_this));
|
|
43
44
|
_initializerDefineProperty(_this, "kernelStatus", _descriptor3, _assertThisInitialized(_this));
|
|
@@ -48,7 +49,6 @@ export var LibroJupyterModel = (_dec = transient(), _dec2 = prop(), _dec3 = prop
|
|
|
48
49
|
_this.serverConnection = void 0;
|
|
49
50
|
_this.contentsManager = void 0;
|
|
50
51
|
_this.modalService = void 0;
|
|
51
|
-
_this.virtualizedManager = void 0;
|
|
52
52
|
_this.kcDeferred = new Deferred();
|
|
53
53
|
_initializerDefineProperty(_this, "kernelConnecting", _descriptor6, _assertThisInitialized(_this));
|
|
54
54
|
_initializerDefineProperty(_this, "filePath", _descriptor7, _assertThisInitialized(_this));
|
|
@@ -473,13 +473,7 @@ export var LibroJupyterModel = (_dec = transient(), _dec2 = prop(), _dec3 = prop
|
|
|
473
473
|
});
|
|
474
474
|
if (runningCellIndex > -1) {
|
|
475
475
|
this.selectCell(this.cells[runningCellIndex]);
|
|
476
|
-
|
|
477
|
-
this.scrollToCellView({
|
|
478
|
-
cellIndex: runningCellIndex
|
|
479
|
-
});
|
|
480
|
-
} else {
|
|
481
|
-
this.scrollToView(this.cells[runningCellIndex]);
|
|
482
|
-
}
|
|
476
|
+
this.scrollToView(this.cells[runningCellIndex]);
|
|
483
477
|
}
|
|
484
478
|
}
|
|
485
479
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-jupyter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro"
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"src"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@difizen/libro-cofine-editor": "^0.1.
|
|
35
|
-
"@difizen/libro-code-editor": "^0.1.
|
|
36
|
-
"@difizen/libro-code-cell": "^0.1.
|
|
37
|
-
"@difizen/libro-codemirror": "^0.1.
|
|
38
|
-
"@difizen/libro-rendermime": "^0.1.
|
|
39
|
-
"@difizen/libro-common": "^0.1.
|
|
40
|
-
"@difizen/libro-core": "^0.1.
|
|
41
|
-
"@difizen/libro-kernel": "^0.1.
|
|
42
|
-
"@difizen/libro-l10n": "^0.1.
|
|
43
|
-
"@difizen/libro-output": "^0.1.
|
|
44
|
-
"@difizen/libro-search": "^0.1.
|
|
45
|
-
"@difizen/libro-search-code-cell": "^0.1.
|
|
46
|
-
"@difizen/libro-lsp": "^0.1.
|
|
47
|
-
"@difizen/libro-markdown-cell": "^0.1.
|
|
48
|
-
"@difizen/libro-raw-cell": "^0.1.
|
|
49
|
-
"@difizen/libro-language-client": "^0.1.
|
|
34
|
+
"@difizen/libro-cofine-editor": "^0.1.21",
|
|
35
|
+
"@difizen/libro-code-editor": "^0.1.21",
|
|
36
|
+
"@difizen/libro-code-cell": "^0.1.21",
|
|
37
|
+
"@difizen/libro-codemirror": "^0.1.21",
|
|
38
|
+
"@difizen/libro-rendermime": "^0.1.21",
|
|
39
|
+
"@difizen/libro-common": "^0.1.21",
|
|
40
|
+
"@difizen/libro-core": "^0.1.21",
|
|
41
|
+
"@difizen/libro-kernel": "^0.1.21",
|
|
42
|
+
"@difizen/libro-l10n": "^0.1.21",
|
|
43
|
+
"@difizen/libro-output": "^0.1.21",
|
|
44
|
+
"@difizen/libro-search": "^0.1.21",
|
|
45
|
+
"@difizen/libro-search-code-cell": "^0.1.21",
|
|
46
|
+
"@difizen/libro-lsp": "^0.1.21",
|
|
47
|
+
"@difizen/libro-markdown-cell": "^0.1.21",
|
|
48
|
+
"@difizen/libro-raw-cell": "^0.1.21",
|
|
49
|
+
"@difizen/libro-language-client": "^0.1.21",
|
|
50
50
|
"@difizen/mana-app": "latest",
|
|
51
51
|
"@difizen/mana-l10n": "latest",
|
|
52
52
|
"@ant-design/colors": "^7.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LibroModel, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
2
1
|
import type { VirtualizedManager } from '@difizen/libro-core';
|
|
2
|
+
import { LibroModel, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
3
3
|
import {
|
|
4
4
|
ContentsManager,
|
|
5
5
|
ExecutableNotebookModel,
|
|
@@ -38,6 +38,7 @@ export class LibroJupyterModel extends LibroModel implements ExecutableNotebookM
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
protected libroFileService: LibroFileService;
|
|
41
|
+
protected virtualizedManager: VirtualizedManager;
|
|
41
42
|
|
|
42
43
|
get fileService() {
|
|
43
44
|
return this.libroFileService;
|
|
@@ -60,7 +61,6 @@ export class LibroJupyterModel extends LibroModel implements ExecutableNotebookM
|
|
|
60
61
|
protected serverConnection: ServerConnection;
|
|
61
62
|
protected readonly contentsManager: ContentsManager;
|
|
62
63
|
protected readonly modalService: ModalService;
|
|
63
|
-
protected virtualizedManager: VirtualizedManager;
|
|
64
64
|
|
|
65
65
|
constructor(
|
|
66
66
|
@inject(LibroFileService) libroFileService: LibroFileService,
|
|
@@ -309,12 +309,7 @@ export class LibroJupyterModel extends LibroModel implements ExecutableNotebookM
|
|
|
309
309
|
});
|
|
310
310
|
if (runningCellIndex > -1) {
|
|
311
311
|
this.selectCell(this.cells[runningCellIndex]);
|
|
312
|
-
|
|
313
|
-
if (this.virtualizedManager.isVirtualized) {
|
|
314
|
-
this.scrollToCellView({ cellIndex: runningCellIndex });
|
|
315
|
-
} else {
|
|
316
|
-
this.scrollToView(this.cells[runningCellIndex]);
|
|
317
|
-
}
|
|
312
|
+
this.scrollToView(this.cells[runningCellIndex]);
|
|
318
313
|
}
|
|
319
314
|
}
|
|
320
315
|
}
|