A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: show elapsed time for errored cells (#459)
Akshay Agrawal5067a0a6280e
diff --git a/frontend/src/core/cells/cell.ts b/frontend/src/core/cells/cell.tsindex dd7c3bb399..7372c63765 100644--- a/frontend/src/core/cells/cell.ts+++ b/frontend/src/core/cells/cell.ts@@ -17,6 +17,7 @@ export function transitionCell(case "queued":nextCell.interrupted = false;nextCell.errored = false;+ nextCell.runElapsedTimeMs = null;// We intentionally don't update lastCodeRun, since the kernel queues// whatever code was last registered with it, which might not match// the cell's current code if the user modified it.@@ -65,18 +66,9 @@ export function transitionCell(// The cell didn't run, but it was intentional, so don't count as// errored.nextCell.stopped = true;- // Update elapsed time, since it is still useful to know how long before- // the cell was stopped.- nextCell.runElapsedTimeMs = cell.runStartTimestamp- ? (message.timestamp - cell.runStartTimestamp) * 1000- : null;} else {+ // Communicate that the cell errored (e.g., an exception was raised)nextCell.errored = true;- // Update elapsed time, since it is still useful to know how long before- // the cell was stopped.- nextCell.runElapsedTimeMs = cell.runStartTimestamp- ? (message.timestamp - cell.runStartTimestamp) * 1000- : null;}}