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.

tidy: remove empty `files/` folder from every export (#10047)

Dylan Madisettibe7757e8b404
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 7c47eaff9f..1f1480d4f9 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -36,7 +36,7 @@ jobs:
- name: 🛠️ Run export
run: |
- uvx marimo export html-wasm frontend/public/files/wasm-intro.py -o out --mode run
+ uvx marimo export html-wasm frontend/public/export_demos/wasm-intro.py -o out --mode run
sed -i -e "s/after_delay/off/g" out/index.html
- name: 📄 List changed files
diff --git a/frontend/public/files/wasm-intro.py b/frontend/public/export_demos/wasm-intro.py
similarity index 100%
rename from frontend/public/files/wasm-intro.py
rename to frontend/public/export_demos/wasm-intro.py
diff --git a/frontend/src/core/wasm/store.ts b/frontend/src/core/wasm/store.ts
index c752cdc918..764219684b 100644
--- a/frontend/src/core/wasm/store.ts
+++ b/frontend/src/core/wasm/store.ts
@@ -62,7 +62,7 @@ const remoteDefaultFileStore: FileStore = {
if (window.location.hostname !== "marimo.app") {
return null;
}
- const url = new URL("files/wasm-intro.py", document.baseURI);
+ const url = new URL("export_demos/wasm-intro.py", document.baseURI);
return fetch(url.toString())
.then((res) => (res.ok ? res.text() : null))
.catch(() => null);
diff --git a/pyproject.toml b/pyproject.toml
index 14cfca0dc2..5e94a971eb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -314,7 +314,7 @@ exclude = [
"frontend",
"marimo/_smoke_tests",
"marimo/_snippets/data",
- "marimo/_static/files/wasm-intro.py",
+ "marimo/_static/export_demos/wasm-intro.py",
"marimo/_test_utils/_tutorials",
"marimo/_test_utils/codegen_data",
"marimo/_tutorials",
diff --git a/scripts/buildfrontend.sh b/scripts/buildfrontend.sh
index 6b6025822d..793d80ad24 100755
--- a/scripts/buildfrontend.sh
+++ b/scripts/buildfrontend.sh
@@ -17,7 +17,7 @@ if $cmd; then
echo "Copying new static files..."
mkdir -p marimo/_static/
cp -R frontend/dist/* marimo/_static/
- rm -rf marimo/_static/files/wasm-intro.py
+ rm -rf marimo/_static/export_demos
echo "Copying CLAUDE.md documentation..."
cp docs/_static/CLAUDE.md marimo/_static/CLAUDE.md
echo "Compilation succeeded.\n"