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 setup cell name not persisting in code_mode (#8717)
Trevor Manze42da7cf070d
diff --git a/marimo/_code_mode/_context.py b/marimo/_code_mode/_context.pyindex 0ce03e0b27..42a6ece72f 100644--- a/marimo/_code_mode/_context.py+++ b/marimo/_code_mode/_context.py@@ -448,8 +448,7 @@ class AsyncCodeModeContext:if self._cell_manager is not Noneelse CellId_t(SETUP_CELL_NAME))- # Setup is identified by cell_id, not name — clear the name.- return cell_id, None+ return cell_id, SETUP_CELL_NAMEcell_id = self._id_generator.create_cell_id()return cell_id, name