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: Don't do health check in static notebooks (#6079)
Dylan Madisettid0dc38da3760
diff --git a/frontend/src/core/runtime/config.ts b/frontend/src/core/runtime/config.tsindex e6d017ebce..341c616a49 100644--- a/frontend/src/core/runtime/config.ts+++ b/frontend/src/core/runtime/config.ts@@ -1,5 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */import { atom, useAtomValue } from "jotai";+import { isStaticNotebook } from "@/core/static/static-state";import { store } from "../state/jotai";import { RuntimeManager } from "./runtime";import type { RuntimeConfig } from "./types";@@ -18,7 +19,10 @@ export const DEFAULT_RUNTIME_CONFIG: RuntimeConfig = {export const runtimeConfigAtom = atom<RuntimeConfig>(DEFAULT_RUNTIME_CONFIG);const runtimeManagerAtom = atom<RuntimeManager>((get) => {const config = get(runtimeConfigAtom);- return new RuntimeManager(config);+ // "lazy" means that the runtime manager will not attempt to connect to a+ // server, which in the case of a static notebook, will not be available.+ const lazy = isStaticNotebook();+ return new RuntimeManager(config, lazy);});export function useRuntimeManager(): RuntimeManager {