Skip to content

Commit

Permalink
chore: bump jupyter-react
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Sep 27, 2023
1 parent a05b840 commit 95c00e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 1 addition & 6 deletions src/DatalayerJupyterLab.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => (
<JupyterLabApp
extensions={[
datalayerExtension,
collaborationExtension,
]}
extensionPromises={extensionPromises}
mimeExtensionPromises={mimeExtensionPromises}
hostId="datalayer-jupyterlab-id"
position="absolute"
height="100vh"
/>
Expand Down
7 changes: 1 addition & 6 deletions src/DatalayerJupyterLabHeadless.tsx
Original file line number Diff line number Diff line change
@@ -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<any>`
body {
background-color: white !important;
Expand All @@ -32,9 +30,6 @@ const DatalayerJupyterLabHeadless = () => {
datalayerExtension,
collaborationExtension,
]}
extensionPromises={extensionPromises}
mimeExtensionPromises={mimeExtensionPromises}
hostId="jupyterlab-app-id"
headless={true}
onReady={onReady}
/>
Expand Down

0 comments on commit 95c00e0

Please sign in to comment.