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
Remove auto-instantiate from /api/execute endpoint (#8943)
Trevor Manzbd75e65898c9
diff --git a/marimo/_server/api/endpoints/execution.py b/marimo/_server/api/endpoints/execution.pyindex e6782bfdbf..d423b6a0eb 100644--- a/marimo/_server/api/endpoints/execution.py+++ b/marimo/_server/api/endpoints/execution.py@@ -272,14 +272,6 @@ async def execute_code(body = await parse_request(request, cls=ExecuteScratchpadRequest)session = app_state.require_current_session()- # Auto-instantiate so headless /api/execute works without a prior- # /api/instantiate call. The kernel no-ops if already instantiated,- # and queue ordering guarantees it completes before the scratchpad runs.- session.instantiate(- InstantiateNotebookRequest(object_ids=[], values=[], auto_run=True),- http_request=HTTPRequest.from_request(request),- )-async def _watch_disconnect() -> None:"""Wait for client disconnect and interrupt the kernel."""while True: