diff --git a/package.json b/package.json index 3f92ae0..897e80a 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "watch:src": "tsc -w" }, "dependencies": { - "@datalayer/jupyter-react": "0.7.7", + "@datalayer/jupyter-react": "0.7.8", "@jupyter/collaboration-extension": "1.2.0", "@jupyterlab/application": "4.0.3", "@jupyterlab/coreutils": "6.0.3", diff --git a/src/DatalayerJupyterLab.tsx b/src/DatalayerJupyterLab.tsx index f64c686..e186e22 100644 --- a/src/DatalayerJupyterLab.tsx +++ b/src/DatalayerJupyterLab.tsx @@ -1,19 +1,14 @@ import { createRoot } from 'react-dom/client'; -import { Jupyter, JupyterLabApp, JupyterLabAppCorePlugins } from '@datalayer/jupyter-react'; +import { Jupyter, JupyterLabApp } from '@datalayer/jupyter-react'; import * as collaborationExtension from '@jupyter/collaboration-extension'; import * as datalayerExtension from './jupyterlab'; -const { extensionPromises, mimeExtensionPromises } = JupyterLabAppCorePlugins; - const DatalayerJupyterLab = () => ( diff --git a/src/DatalayerJupyterLabHeadless.tsx b/src/DatalayerJupyterLabHeadless.tsx index ecf6ef5..4777e16 100644 --- a/src/DatalayerJupyterLabHeadless.tsx +++ b/src/DatalayerJupyterLabHeadless.tsx @@ -1,14 +1,12 @@ import { useState } from 'react'; import { createRoot } from 'react-dom/client'; import { createGlobalStyle } from 'styled-components'; -import { Jupyter, JupyterLabApp, JupyterLabAppAdapter, JupyterLabAppCorePlugins } from '@datalayer/jupyter-react'; +import { Jupyter, JupyterLabApp, JupyterLabAppAdapter } from '@datalayer/jupyter-react'; import { JupyterLab } from '@jupyterlab/application'; import * as collaborationExtension from '@jupyter/collaboration-extension'; import * as datalayerExtension from './jupyterlab/index'; import Datalayer from './Datalayer'; -const { extensionPromises, mimeExtensionPromises } = JupyterLabAppCorePlugins; - const ThemeGlobalStyle = createGlobalStyle` body { background-color: white !important; @@ -32,9 +30,6 @@ const DatalayerJupyterLabHeadless = () => { datalayerExtension, collaborationExtension, ]} - extensionPromises={extensionPromises} - mimeExtensionPromises={mimeExtensionPromises} - hostId="jupyterlab-app-id" headless={true} onReady={onReady} />