Skip to content

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.

fix: resuming when auto-instantiate is false (#1061)

Akshay Agrawal944e4541ff94
diff --git a/frontend/src/core/websocket/useMarimoWebSocket.tsx b/frontend/src/core/websocket/useMarimoWebSocket.tsx
index 8f14e5936a..6497d5c84b 100644
--- a/frontend/src/core/websocket/useMarimoWebSocket.tsx
+++ b/frontend/src/core/websocket/useMarimoWebSocket.tsx
@@ -81,7 +81,7 @@ export function useMarimoWebSocket(opts: {
// A cell is stale if we did not auto-instantiate (i.e. nothing has run yet)
// or if the code has changed since the last time it was run.
let edited = false;
- if (autoInstantiate) {
+ if (autoInstantiate || resumed) {
const lastCodeRun = last_executed_code[cellId];
if (lastCodeRun) {
edited = lastCodeRun !== code;