Open
Description
In upstream JupyterLab code KernelError
information is included when execution fails
try {
const reply = await CodeCell.execute(
cell as CodeCell
// ...
);
// ...
ran = (() => {
// ...
if (reply.content.status === 'ok') {
// ...
return true;
} else {
throw new KernelError(reply.content);
}
})();
} catch (reason) {
if (cell.isDisposed || reason.message.startsWith('Canceled')) {
ran = false;
} else {
onCellExecuted({
cell,
success: false,
error: reason
});
throw reason;
}
}
if (ran) {
onCellExecuted({ cell, success: true });
}
This is not the case with jupyter-server-nbmodel
which omits the error
information:
jupyter-server-nbmodel/src/executor.ts
Lines 130 to 144 in 0a6c683