File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 43
43
"@jupyterlab/application" : " ^4.0.0" ,
44
44
"@jupyterlab/coreutils" : " ^6.0.5" ,
45
45
"@jupyterlab/rendermime" : " ^4.0.0" ,
46
- "@jupyterlab/services" : " ^7.0.0" ,
47
- "@voila-dashboards/voila" : " ^0.5"
46
+ "@jupyterlab/services" : " ^7.0.0"
48
47
},
49
48
"devDependencies" : {
50
49
"@babel/core" : " ^7.10.2" ,
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ import {
32
32
IWidgetRegistryData
33
33
} from '@jupyter-widgets/base' ;
34
34
35
- import { VoilaApp } from '@voila-dashboards/voila' ;
36
-
37
35
const WIDGET_MIMETYPE = 'application/vnd.jupyter.widget-view+json' ;
38
36
39
37
/**
@@ -49,7 +47,7 @@ export const widgetManagerPlugin: JupyterFrontEndPlugin<IJupyterWidgetRegistry>
49
47
app : JupyterFrontEnd ,
50
48
rendermime : IRenderMimeRegistry
51
49
) : Promise < IJupyterWidgetRegistry > => {
52
- if ( ! ( app instanceof VoilaApp ) ) {
50
+ if ( app . name !== 'Voila' ) {
53
51
throw Error (
54
52
'The Voila Widget Manager plugin must be activated in a VoilaApp'
55
53
) ;
@@ -68,7 +66,7 @@ export const widgetManagerPlugin: JupyterFrontEndPlugin<IJupyterWidgetRegistry>
68
66
}
69
67
const kernel = new KernelConnection ( { model, serverSettings } ) ;
70
68
const manager = new KernelWidgetManager ( kernel , rendermime ) ;
71
- app . widgetManager = manager ;
69
+ ( app as any ) . widgetManager = manager ;
72
70
73
71
rendermime . removeMimeType ( WIDGET_MIMETYPE ) ;
74
72
rendermime . addFactory (
@@ -95,7 +93,7 @@ export const widgetManagerPlugin: JupyterFrontEndPlugin<IJupyterWidgetRegistry>
95
93
96
94
return {
97
95
registerWidget : async ( data : IWidgetRegistryData ) => {
98
- const manager = await app . widgetManagerPromise . promise ;
96
+ const manager = await ( app as any ) . widgetManagerPromise . promise ;
99
97
100
98
manager . register ( data ) ;
101
99
}
Original file line number Diff line number Diff line change @@ -5448,7 +5448,7 @@ __metadata:
5448
5448
languageName: unknown
5449
5449
linkType: soft
5450
5450
5451
- "@voila-dashboards/voila@^0.5, @voila-dashboards/voila@ workspace:packages/voila":
5451
+ "@voila-dashboards/voila@workspace:packages/voila":
5452
5452
version: 0.0.0-use.local
5453
5453
resolution: "@voila-dashboards/voila@workspace:packages/voila"
5454
5454
dependencies:
@@ -5529,7 +5529,6 @@ __metadata:
5529
5529
"@jupyterlab/rendermime": ^4.0.0
5530
5530
"@jupyterlab/services": ^7.0.0
5531
5531
"@jupyterlab/testutils": ^4.0.0
5532
- "@voila-dashboards/voila": ^0.5
5533
5532
npm-run-all: ^4.1.5
5534
5533
rimraf: ^2.6.1
5535
5534
source-map-loader: ~1.0.2
You can’t perform that action at this time.
0 commit comments