Skip to content

Commit 5bc0f17

Browse files
try migrating to non-deprecated plugin method
1 parent 277cb74 commit 5bc0f17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kernel/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Removed Widget import as we're no longer using @lumino/widgets
2-
import { JupyterLiteServer, JupyterLiteServerPlugin } from '@jupyterlite/server';
2+
// import { JupyterLiteServer, JupyterLiteServerPlugin } from '@jupyterlite/server';
3+
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
34
import { IKernel, IKernelSpecs } from '@jupyterlite/kernel';
45
import { EmbeddedKernel } from './kernel';
56
import WelcomePanel from './panel';
@@ -10,11 +11,11 @@ import { DeviceService } from './services/DeviceService';
1011
var devService: DeviceService | null = null;
1112

1213
// Kernel plugin for the embedded kernel
13-
const kernelPlugin: JupyterLiteServerPlugin<void> = {
14+
const kernelPlugin: JupyterFrontEndPlugin<void> = {
1415
id: 'jupyterlite-embedded-kernel:kernel',
1516
autoStart: true,
1617
requires: [IKernelSpecs],
17-
activate: (app: JupyterLiteServer, kernelspecs: IKernelSpecs) => {
18+
activate: (app: JupyterFrontEnd, kernelspecs: IKernelSpecs) => {
1819
const activeKernels = new Map<string, EmbeddedKernel>();
1920

2021
// print the app to console

0 commit comments

Comments
 (0)