Skip to content

Commit

Permalink
Release: 0 18 8 and 0.18.09 (#316)
Browse files Browse the repository at this point in the history
* release: 0.18.8

* bump: version
  • Loading branch information
echarles authored Sep 16, 2024
1 parent 50fe121 commit d295746
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datalayer/jupyter-react",
"version": "0.18.7",
"version": "0.18.9",
"description": "Jupyter React - React.js components 100% compatible with Jupyter.",
"license": "MIT",
"main": "lib/index.js",
Expand Down
30 changes: 30 additions & 0 deletions packages/react/src/examples/NotebookURL.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2021-2023 Datalayer, Inc.
*
* MIT License
*/

import { createRoot } from 'react-dom/client';
import { JupyterReactTheme } from '../theme/JupyterReactTheme';
import { Notebook } from '../components/notebook/Notebook';
import { NotebookToolbar } from './../components/notebook/toolbar/NotebookToolbar';
import { CellSidebarButton } from '../components/notebook/cell/sidebar/CellSidebarButton';

const NOTEBOOK_ID = 'notebook-id';

const div = document.createElement('div');
document.body.appendChild(div);
const root = createRoot(div);

root.render(
<JupyterReactTheme>
<Notebook
url="https://raw.githubusercontent.com/datalayer/jupyter-ui/main/packages/react/src/examples/notebooks/IPyWidgetsExampleWithState.ipynb.json"
id={NOTEBOOK_ID}
height="calc(100vh - 2.6rem)" // (Height - Toolbar Height).
cellSidebarMargin={60}
CellSidebar={CellSidebarButton}
Toolbar={NotebookToolbar}
/>
</JupyterReactTheme>
);
2 changes: 1 addition & 1 deletion packages/react/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ENTRY =
// './src/examples/Lumino';
// './src/examples/Matplotlib';
// './src/examples/Notebook';
// './src/examples/NotebookUrl';
// './src/examples/NotebookURL';
// './src/examples/NotebookColorMode';
// './src/examples/NotebookKernelChange';
// './src/examples/NotebookLite';
Expand Down

0 comments on commit d295746

Please sign in to comment.