Skip to content

Commit f58506b

Browse files
echarlesfcollonval
andauthored
Kernel state for Cell and Output (#282)
* chore: use id instead of uid prop * fix: build * output: fix nbgrader * chore: cell to use kernel executor * chore: output and cell to use kernel executor * chore: simplify output state * chore: kernel state * chore: kernel phase * chore: lint * fix: build * chore: relax kernel executor constructor * chore: output state code * chore: add completed_with_error execution phase * chore: disconnect signals * Update packages/react/src/components/output/Output.tsx Co-authored-by: Frédéric Collonval <frederic.collonval@webscit.com> --------- Co-authored-by: Frédéric Collonval <frederic.collonval@webscit.com>
1 parent bbc2378 commit f58506b

File tree

82 files changed

+987
-633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+987
-633
lines changed

attic/prosemirror/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@codemirror/lang-python": "6.0.1",
26-
"@datalayer/jupyter-react": "^0.12.0",
26+
"@datalayer/jupyter-react": "^0.15.0",
2727
"@prosemirror-adapter/react": "0.2.4",
2828
"@types/orderedmap": "1.0.0",
2929
"codemirror": "6.0.1",

examples/cra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@datalayer/icons-react": "^0.3.0",
16-
"@datalayer/jupyter-react": "^0.12.0",
16+
"@datalayer/jupyter-react": "^0.15.0",
1717
"@datalayer/primer-addons": "0.3.0",
1818
"jupyterlab-plotly": "^5.17.0",
1919
"plotly.js": "^2.26.2",

examples/cra/src/examples/cell/CellComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* MIT License
55
*/
66

7-
import { useCellStore, Cell } from "@datalayer/jupyter-react";
7+
import { useCellsStore, Cell } from "@datalayer/jupyter-react";
88
import CellToolbar from './CellToolbar';
99

1010
const SOURCE_EXAMPLE = `"""
@@ -36,7 +36,7 @@ ax2.set_ylabel('Undamped')
3636
plt.show()`;
3737

3838
const CellPreview = () => {
39-
const cellStore = useCellStore();
39+
const cellStore = useCellsStore();
4040
return (
4141
<>
4242
<div>source: {cellStore.source}</div>

examples/cra/src/examples/cell/CellToolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import React from 'react';
88
import { Box, IconButton, Text, Tooltip } from '@primer/react';
99
import { PlayIcon, ReplyIcon, ThreeBarsIcon } from '@primer/octicons-react';
10-
import { useCellStore } from '@datalayer/jupyter-react';
10+
import { useCellsStore } from '@datalayer/jupyter-react';
1111

1212
const CellToolbar: React.FC = () => {
13-
const cellStore = useCellStore();
13+
const cellStore = useCellsStore();
1414
const outputsCount = cellStore.outputsCount;
1515
return (
1616
<>

examples/next-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@datalayer/icons-react": "^0.3.0",
14-
"@datalayer/jupyter-react": "^0.12.0",
14+
"@datalayer/jupyter-react": "^0.15.0",
1515
"@datalayer/primer-addons": "0.3.0",
1616
"autoprefixer": "^10.4.14",
1717
"eslint": "^8.40.0",

examples/slate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@datalayer/icons-react": "^0.3.0",
27-
"@datalayer/jupyter-react": "^0.12.0",
27+
"@datalayer/jupyter-react": "^0.15.0",
2828
"@datalayer/primer-addons": "0.3.0",
2929
"@emotion/css": "^11.1.3",
3030
"@emotion/react": "^11.10.6",

packages/docusaurus-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@datalayer/icons-react": "^0.3.0",
26-
"@datalayer/jupyter-react": "^0.12.0",
26+
"@datalayer/jupyter-react": "^0.15.0",
2727
"@datalayer/primer-addons": "0.3.0",
2828
"@docusaurus/core": "^2.4.0",
2929
"@docusaurus/types": "^2.1.0"

packages/lexical/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"dependencies": {
6161
"@datalayer/icons-react": "^0.3.0",
62-
"@datalayer/jupyter-react": "^0.12.0",
62+
"@datalayer/jupyter-react": "^0.15.0",
6363
"@datalayer/primer-addons": "0.3.0",
6464
"@jupyterlab/application": "^4.0.0",
6565
"@jupyterlab/coreutils": "^6.0.0",

packages/lexical/src/components/JupyterOutputComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const JupyterOutputComponent = (props: Props) => {
2727
adapter={outputAdapter}
2828
showEditor={false}
2929
autoRun={autoRun}
30-
sourceId={outputNodeUuid}
30+
id={outputNodeUuid}
3131
executeTrigger={executeTrigger}
3232
lumino={false}
3333
/>

packages/lexical/src/examples/App2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const Tabs = () => {
9090
<StyledNotebook>
9191
<Box mb={3}>
9292
<Notebook
93-
uid={NOTEBOOK_UID}
93+
id={NOTEBOOK_UID}
9494
nbformat={notebookContent}
9595
CellSidebar={CellSidebar}
9696
/>

0 commit comments

Comments
 (0)