Skip to content

marimo export to empty folder prompts for existing file #6012

@tiago-lqt

Description

@tiago-lqt

Describe the bug

When running marimo export and in particular marimo export html-wasm and setting the output to an existing empty folder the user is warned that index.html already exists and prompted to overwrite.

Comparing the content of index.html before and after it is noticed that the existing contents is for the index.html template.

Will you submit a PR?

  • Yes

Environment

{
  "marimo": "0.14.16",
  "editable": false,
  "OS": "Windows",
  "OS Version": "11",
  "Processor": "AMD64 Family 26 Model 68 Stepping 0, AuthenticAMD",
  "Python Version": "3.12.10",
  "Binaries": {
    "Browser": "--",
    "Node": "v24.1.0"
  },
  "Dependencies": {
    "click": "8.2.1",
    "docutils": "0.22",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.8.2",
    "narwhals": "2.0.1",
    "packaging": "25.0",
    "psutil": "7.0.0",
    "pygments": "2.19.2",
    "pymdown-extensions": "10.16.1",
    "pyyaml": "6.0.2",
    "starlette": "0.47.2",
    "tomlkit": "0.13.3",
    "typing-extensions": "4.14.1",
    "uvicorn": "0.35.0",
    "websockets": "15.0.1"
  },
  "Optional Dependencies": {
    "altair": "5.5.0",
    "duckdb": "1.3.2",
    "nbformat": "5.10.4",
    "openai": "1.99.6",
    "pandas": "2.3.1",
    "polars": "1.32.2",
    "pyarrow": "21.0.0",
    "loro": "1.5.3",
    "ruff": "0.12.8",
    "sqlglot": "27.6.0"
  },
  "Experimental Flags": {}
}

Code to reproduce

marimo export html-wasm ./sample_notebook.py -o "./dist/sample-notebook" --mode edit

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions