Private
_executedPrivate
_executionPrivate
Optional
_futurePrivate
_kernelPrivate
_kernelPrivate
_modelPrivate
_modelPrivate
Optional
_onPrivate
_outputsPrivate
_outputsPrivate
Optional
_phasePrivate
_shellPrivate
_stopPrivate
_suppressSignal emitted when execution phase changes.
Kernel outputs wrapped in a model.
Signal emitted when the outputs model changes.
Kernel outputs emitted.
Signal emitted when the outputs list changes.
Code execution result as serialized JSON
Private
_onIOPubPrivate
_onExecute a code snippet.
Code to be executed
Callbacks on IOPub messages and on reply message
Optional
allowOptional
iopubOptional
shellOptional
silent?: booleanOptional
stopOptional
storeOptional
suppressThe outputs model
Here is an example to execute the code snippet print('hello')
.
const executor = new KernelExecutor(kernelConnection);
const outputs = await executor.execute("print('hello')");
Promise that resolves when the execution is done.