Skip to content

Commit 822dfa6

Browse files
Revert "try migrating to non-deprecated plugin method"
This reverts commit 5bc0f17.
1 parent 5bc0f17 commit 822dfa6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

kernel/src/index.ts

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

1312
// Kernel plugin for the embedded kernel
14-
const kernelPlugin: JupyterFrontEndPlugin<void> = {
13+
const kernelPlugin: JupyterLiteServerPlugin<void> = {
1514
id: 'jupyterlite-embedded-kernel:kernel',
1615
autoStart: true,
1716
requires: [IKernelSpecs],
18-
activate: (app: JupyterFrontEnd, kernelspecs: IKernelSpecs) => {
17+
activate: (app: JupyterLiteServer, kernelspecs: IKernelSpecs) => {
1918
const activeKernels = new Map<string, EmbeddedKernel>();
2019

2120
// print the app to console

0 commit comments

Comments
 (0)