From 96a6023bdab3f6bbfd19727fa15be18c782a737b Mon Sep 17 00:00:00 2001 From: Wei Wu <96556502+scnwwu@users.noreply.github.com> Date: Fri, 9 Aug 2024 02:56:35 -0400 Subject: [PATCH] fix: clear cell output before cell executing (#1127) --- client/src/components/notebook/Controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/notebook/Controller.ts b/client/src/components/notebook/Controller.ts index 94feb8eee..ea7c6d0ae 100644 --- a/client/src/components/notebook/Controller.ts +++ b/client/src/components/notebook/Controller.ts @@ -60,6 +60,7 @@ export class NotebookController { const execution = this._controller.createNotebookCellExecution(cell); execution.executionOrder = ++this._executionOrder; execution.start(Date.now()); // Keep track of elapsed time to execute cell. + execution.clearOutput(); const session = getSession(); session.onExecutionLogFn = (logLines) => {