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: export ipynb with sandbox (#4123)
Myles Scolnick5e3e5415cdd0
diff --git a/marimo/_cli/export/commands.py b/marimo/_cli/export/commands.pyindex da4e64e560..3f76f88f96 100644--- a/marimo/_cli/export/commands.py+++ b/marimo/_cli/export/commands.py@@ -420,6 +420,7 @@ def ipynb(from marimo._cli.sandbox import run_in_sandboxrun_in_sandbox(sys.argv[1:], name)+ returndef export_callback(file_path: MarimoPath) -> ExportResult:if include_outputs:diff --git a/tests/_cli/test_cli_export.py b/tests/_cli/test_cli_export.pyindex b9488095e5..2778b7a224 100644--- a/tests/_cli/test_cli_export.py+++ b/tests/_cli/test_cli_export.py@@ -869,6 +869,7 @@ class TestExportIpynb:reason="This test requires both uv and nbformat.",)def test_cli_export_ipynb_sandbox(temp_marimo_file: str) -> None:+ output_file = temp_marimo_file.replace(".py", "_sandbox.ipynb")p = subprocess.run(["marimo",@@ -877,6 +878,8 @@ class TestExportIpynb:temp_marimo_file,"--sandbox","--include-outputs",+ "--output",+ output_file,],capture_output=True,)