@datalayer/jupyter-react 0.18.4 → 0.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/output/Output.d.ts +1 -0
- package/lib/components/output/Output.js +5 -4
- package/lib/components/output/Output.js.map +1 -1
- package/lib/components/output/OutputAdapter.d.ts +1 -1
- package/lib/components/output/OutputAdapter.js +12 -5
- package/lib/components/output/OutputAdapter.js.map +1 -1
- package/lib/components/output/OutputExecutor.js +1 -1
- package/lib/components/output/OutputExecutor.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export type IOutputProps = {
|
|
|
23
23
|
showKernelProgressBar?: boolean;
|
|
24
24
|
toolbarPosition: 'up' | 'middle' | 'none';
|
|
25
25
|
notifyOnComplete?: boolean;
|
|
26
|
+
onCodeExecutionError?: (err: any) => void;
|
|
26
27
|
};
|
|
27
28
|
export declare const Output: {
|
|
28
29
|
(props: IOutputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable prettier/prettier */
|
|
2
3
|
/*
|
|
3
4
|
* Copyright (c) 2021-2023 Datalayer, Inc.
|
|
4
5
|
*
|
|
@@ -18,7 +19,7 @@ import './Output.css';
|
|
|
18
19
|
export const Output = (props) => {
|
|
19
20
|
const { defaultKernel } = useJupyter();
|
|
20
21
|
const outputStore = useOutputsStore();
|
|
21
|
-
const { adapter: propsAdapter, autoRun, clearTrigger, code, codePre, disableRun, executeTrigger, insertText, kernel: propsKernel, lumino, model, outputs: propsOutputs, receipt, showControl, showEditor, showKernelProgressBar = true, notifyOnComplete = false, id: sourceId, toolbarPosition, } = props;
|
|
22
|
+
const { adapter: propsAdapter, autoRun, clearTrigger, code, codePre, disableRun, executeTrigger, insertText, kernel: propsKernel, lumino, model, outputs: propsOutputs, receipt, showControl, showEditor, showKernelProgressBar = true, notifyOnComplete = false, onCodeExecutionError, id: sourceId, toolbarPosition, } = props;
|
|
22
23
|
const kernel = propsKernel ?? defaultKernel;
|
|
23
24
|
const [id, setId] = useState(sourceId);
|
|
24
25
|
const [kernelStatus, setKernelStatus] = useState('unknown');
|
|
@@ -75,7 +76,7 @@ export const Output = (props) => {
|
|
|
75
76
|
useEffect(() => {
|
|
76
77
|
if (adapter) {
|
|
77
78
|
if (autoRun) {
|
|
78
|
-
adapter.execute(code, notifyOnComplete);
|
|
79
|
+
adapter.execute(code, notifyOnComplete, onCodeExecutionError);
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
}, [adapter]);
|
|
@@ -95,12 +96,12 @@ export const Output = (props) => {
|
|
|
95
96
|
const executeRequest = outputStore.getExecuteRequest(sourceId);
|
|
96
97
|
useEffect(() => {
|
|
97
98
|
if (adapter && executeRequest && executeRequest === id) {
|
|
98
|
-
adapter.execute(code, notifyOnComplete);
|
|
99
|
+
adapter.execute(code, notifyOnComplete, onCodeExecutionError);
|
|
99
100
|
}
|
|
100
101
|
}, [executeRequest, adapter]);
|
|
101
102
|
useEffect(() => {
|
|
102
103
|
if (adapter && executeTrigger > 0) {
|
|
103
|
-
adapter.execute(code, notifyOnComplete);
|
|
104
|
+
adapter.execute(code, notifyOnComplete, onCodeExecutionError);
|
|
104
105
|
}
|
|
105
106
|
}, [executeTrigger]);
|
|
106
107
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Output.js","sourceRoot":"","sources":["../../../src/components/output/Output.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAIpC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,O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YAAY;wBACtB,UAAU,EAAE,UAAU;qBACvB;iBACF,YAEA,MAAM;oBACL,CAAC,CAAC,OAAO,IAAI,KAAC,MAAM,cAAE,OAAO,CAAC,UAAU,GAAU;oBAClD,CAAC,CAAC,OAAO,IAAI,CACT,4BACG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAe,EAAE,EAAE;4BAC/B,OAAO,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC;wBAC5C,CAAC,CAAC,GACD,CACJ,GACD,CACP,IACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG;IACpB,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,cAAc,EAAE,CAAC;IACjB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE;QACP;YACE,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX,0DAA0D;iBAC3D;aACF;YACD,eAAe,EAAE,CAAC;YAClB,QAAQ,EAAE,EAAE;SACb;KACF;IACD,gBAAgB,EAAG,KAAK;IACxB,eAAe,EAAE,IAAI;CACG,CAAC;AAE3B,eAAe,MAAM,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare class OutputAdapter {
|
|
|
9
9
|
private _rendermime;
|
|
10
10
|
private _iPyWidgetsClassicManager;
|
|
11
11
|
constructor(id: string, kernel?: Kernel, outputs?: IOutput[], outputAreaModel?: IOutputAreaModel);
|
|
12
|
-
execute(code: string, notifyOnComplete?: boolean): Promise<void>;
|
|
12
|
+
execute(code: string, notifyOnComplete?: boolean, onCodeExecutionError?: (err: any) => void): Promise<void>;
|
|
13
13
|
interrupt(): void;
|
|
14
14
|
clear(): void;
|
|
15
15
|
get kernel(): Kernel | undefined;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* MIT License
|
|
5
5
|
*/
|
|
6
|
-
import { OutputArea, OutputAreaModel } from '@jupyterlab/outputarea';
|
|
7
|
-
import { RenderMimeRegistry, standardRendererFactories } from '@jupyterlab/rendermime';
|
|
6
|
+
import { OutputArea, OutputAreaModel, } from '@jupyterlab/outputarea';
|
|
7
|
+
import { RenderMimeRegistry, standardRendererFactories, } from '@jupyterlab/rendermime';
|
|
8
8
|
import { rendererFactory as jsonRendererFactory } from '@jupyterlab/json-extension';
|
|
9
9
|
import { rendererFactory as javascriptRendererFactory } from '@jupyterlab/javascript-extension';
|
|
10
|
-
import { WIDGET_MIMETYPE, WidgetRenderer } from '@jupyter-widgets/html-manager/lib/output_renderers';
|
|
10
|
+
import { WIDGET_MIMETYPE, WidgetRenderer, } from '@jupyter-widgets/html-manager/lib/output_renderers';
|
|
11
11
|
import { requireLoader as loader } from '../../jupyter/ipywidgets/libembed-amd';
|
|
12
12
|
import { ClassicWidgetManager } from '../../jupyter/ipywidgets/classic/manager';
|
|
13
13
|
import { execute } from './OutputExecutor';
|
|
@@ -60,12 +60,19 @@ export class OutputAdapter {
|
|
|
60
60
|
}
|
|
61
61
|
this.initKernel();
|
|
62
62
|
}
|
|
63
|
-
async execute(code, notifyOnComplete) {
|
|
63
|
+
async execute(code, notifyOnComplete, onCodeExecutionError) {
|
|
64
64
|
if (this._kernel) {
|
|
65
65
|
this.clear();
|
|
66
66
|
const metadata = {};
|
|
67
67
|
const done = execute(this._id, code, this._outputArea, this._kernel, metadata, notifyOnComplete);
|
|
68
|
-
|
|
68
|
+
if (onCodeExecutionError) {
|
|
69
|
+
await done.catch(onCodeExecutionError);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
await done.catch(err => {
|
|
73
|
+
console.error(err);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
77
|
}
|
|
71
78
|
interrupt() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputAdapter.js","sourceRoot":"","sources":["../../../src/components/output/OutputAdapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,
|
|
1
|
+
{"version":3,"file":"OutputAdapter.js","sourceRoot":"","sources":["../../../src/components/output/OutputAdapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAEL,UAAU,EACV,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,EACL,eAAe,EACf,cAAc,GACf,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,OAAO,aAAa;IAChB,GAAG,CAAS;IACZ,OAAO,CAAU;IACjB,UAAU,CAAiC;IAC3C,WAAW,CAAa;IACxB,WAAW,CAAqB;IAChC,yBAAyB,CAAuB;IAExD,YACE,EAAU,EACV,MAAe,EACf,OAAmB,EACnB,eAAkC;QAElC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,yBAAyB,CAAC,MAAM,CAChD,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,iBAAiB,CACtD,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC1C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC;Y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ute(id, code, output, kernel, metadata, notifyOnComple
|
|
|
17
17
|
const kernelExecutor = kernel.execute(code, {
|
|
18
18
|
model: output.model,
|
|
19
19
|
stopOnError,
|
|
20
|
-
notifyOnComplete: notifyOnComplete
|
|
20
|
+
notifyOnComplete: notifyOnComplete,
|
|
21
21
|
});
|
|
22
22
|
const future = kernelExecutor.future;
|
|
23
23
|
// TODO fix in upstream jupyterlab if possible...
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputExecutor.js","sourceRoot":"","sources":["../../../src/components/output/OutputExecutor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,EAAU,EACV,IAAY,EACZ,MAAkB,EAClB,MAAc,EACd,QAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"OutputExecutor.js","sourceRoot":"","sources":["../../../src/components/output/OutputExecutor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,EAAU,EACV,IAAY,EACZ,MAAkB,EAClB,MAAc,EACd,QAAqB,EACrB,gBAA0B;IAE1B,4CAA4C;IAC5C,IAAI,WAAW,GAAG,IAAI,CAAC;IACvB,IACE,QAAQ;QACR,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC5B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,EAChD;QACA,WAAW,GAAG,KAAK,CAAC;KACrB;IACD,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE;QAC1C,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,WAAW;QACX,gBAAgB,EAAE,gBAAgB;KACnC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,cAAe,CAAC,MAAM,CAAC;IACtC,iDAAiD;IAChD,MAAc,CAAC,QAAQ,GAAG,MAAO,CAAC,OAAO,CAAC;IAC1C,MAAc,CAAC,eAAe,GAAG,MAAO,CAAC,OAAO,CAAC;IAClD,MAAM,CAAC,MAAM,GAAG,MAAO,CAAC;IACxB,OAAO,MAAM,EAAE,IAAI,CAAC;AACtB,CAAC"}
|