diff --git a/src/plugin.ts b/src/plugin.ts index 5f8a168d..84ddb45f 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -11,12 +11,12 @@ const EXTENSION_ID = 'matplotlib-jupyter:main'; /** * The plugin. */ -const jupyterMatplotlibPlugin: IPlugin, void> = ({ +const jupyterMatplotlibPlugin: IPlugin, void> = { id: EXTENSION_ID, requires: [IJupyterWidgetRegistry], activate: activateWidgetExtension, autoStart: true, -} as unknown) as IPlugin, void>; +} as unknown as IPlugin, void>; // the "as unknown as ..." typecast above is solely to support JupyterLab 1 // and 2 in the same codebase and should be removed when we migrate to Lumino.