Skip to content

Commit b78e139

Browse files
committed
Attempt fix support for JupyterLab 2
1 parent 720747a commit b78e139

File tree

7 files changed

+2876
-3798
lines changed

7 files changed

+2876
-3798
lines changed

package-lock.json

Lines changed: 2850 additions & 3778 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyter-widgets/jupyterlab-sidecar",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "A sidecar output widget for JupyterLab",
55
"keywords": [
66
"jupyter",
@@ -38,31 +38,32 @@
3838
"watch:lib": "tsc"
3939
},
4040
"dependencies": {
41-
"@jupyter-widgets/base": "^2.0.1",
42-
"@jupyter-widgets/jupyterlab-manager": "^1.0.0",
43-
"@jupyterlab/application": "^1.0.0"
41+
"@jupyter-widgets/base": "^3.0.0",
42+
"@jupyter-widgets/jupyterlab-manager": "^2.0.0",
43+
"@jupyterlab/application": "^2.0.0",
44+
"@lumino/coreutils": "^1.4.2"
4445
},
4546
"devDependencies": {
4647
"@types/expect.js": "^0.3.29",
47-
"@types/mocha": "^2.2.41",
48-
"@types/node": "^8.0.17",
48+
"@types/mocha": "^7.0.2",
49+
"@types/node": "^13.9.1",
4950
"expect.js": "^0.3.1",
50-
"fs-extra": "^4.0.2",
51+
"fs-extra": "^8.1.0",
5152
"json-loader": "^0.5.7",
52-
"karma": "^1.7.0",
53-
"karma-chrome-launcher": "^2.2.0",
54-
"karma-firefox-launcher": "^1.0.1",
53+
"karma": "^4.4.1",
54+
"karma-chrome-launcher": "^3.1.0",
55+
"karma-firefox-launcher": "^1.3.0",
5556
"karma-ie-launcher": "^1.0.0",
5657
"karma-mocha": "^1.3.0",
57-
"karma-mocha-reporter": "^2.2.3",
58-
"karma-typescript": "^3.0.5",
59-
"mkdirp": "^0.5.1",
60-
"mocha": "^3.5.0",
61-
"npm-run-all": "^4.1.1",
62-
"rimraf": "^2.6.2",
63-
"source-map-loader": "^0.2.1",
64-
"ts-loader": "^2.3.2",
65-
"typescript": "~3.5.2"
58+
"karma-mocha-reporter": "^2.2.5",
59+
"karma-typescript": "^5.0.0",
60+
"mkdirp": "^1.0.3",
61+
"mocha": "^7.1.0",
62+
"npm-run-all": "^4.1.5",
63+
"rimraf": "^3.0.2",
64+
"source-map-loader": "^0.2.4",
65+
"ts-loader": "^6.2.1",
66+
"typescript": "^3.8.3"
6667
},
6768
"jupyterlab": {
6869
"extension": "lib/plugin"

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77

88
import {
99
UUID
10-
} from '@phosphor/coreutils';
10+
} from '@lumino/coreutils';
1111

1212
import {
1313
IJupyterWidgetRegistry

src/widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class SidecarModel extends OutputModel {
2929

3030
initialize(attributes: any, options: any) {
3131
super.initialize(attributes, options);
32+
// FIXME: Argument of type 'undefined' is not assignable to parameter of type 'IMessage<MessageType>'.
3233
this.widget_manager.display_model(undefined, this, {});
3334
}
3435

tests/src/index.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
} from './utils.spec';
1313

1414
import {
15+
// FIXME: Module '"../../src"' has no exported member 'ExampleModel'.
16+
// FIXME: Module '"../../src"' has no exported member 'ExampleView'.
1517
ExampleModel, ExampleView
1618
} from '../../src/'
1719

tests/src/utils.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class MockComm {
2121
on_msg(fn: Function | null) {
2222
this._on_msg = fn;
2323
}
24+
// FIXME: Namespace '"REDACTED/jupyterlab-sidecar/node_modules/@jupyterlab/services/lib/kernel/messages"' has no exported member 'ICommMsg'.
2425
_process_msg(msg: services.KernelMessage.ICommMsg) {
2526
if (this._on_msg) {
2627
return this._on_msg(msg);

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4+
"esModuleInterop": true,
45
"noImplicitAny": true,
56
"noEmitOnError": true,
67
"noUnusedLocals": true,

0 commit comments

Comments
 (0)