CLI to export to static html page is very slow compare to from notebook browser page.
Describe the bug
Hey guys so I'm trying to export a static html page from a relatively small (~300 lines) notebook.
The notebook page servers fast and if I export to html from the browser -> export -> html it's also very fast. This manual serve and export take seconds to do.
However when I try to do it in CLI via marimo export html notebook.py -o static_notebook.html it's extremely slow, it usually takes over >30 mins and sometime it just completely stuck for hours I have to kill it and restart, any idea why is this the case?
Thanks!
Environment
{
"marimo": "0.12.10",
"OS": "Darwin",
"OS Version": "24.4.0",
"Processor": "arm",
"Python Version": "3.12.8",
"Binaries": {
"Browser": "135.0.7049.96",
"Node": "v22.4.1"
},
"Dependencies": {
"click": "8.1.8",
"docutils": "0.21.2",
"itsdangerous": "2.2.0",
"jedi": "0.19.2",
"markdown": "3.8",
"narwhals": "1.35.0",
"packaging": "24.2",
"psutil": "7.0.0",
"pygments": "2.19.1",
"pymdown-extensions": "10.14.3",
"pyyaml": "6.0.2",
"starlette": "0.46.2",
"tomlkit": "0.13.2",
"typing-extensions": "4.13.2",
"uvicorn": "0.34.1",
"websockets": "15.0.1"
},
"Optional Dependencies": {
"pandas": "2.2.3",
"pyarrow": "19.0.1",
"pycrdt": "0.11.1",
"pytest": "7.4.3",
"ruff": "0.11.2",
"sqlglot": "26.14.0"
},
"Experimental Flags": {}
}
Code to reproduce
No response
That sounds like a bug. For us to help — can you share a notebook that we can use to reproduce this issue?
When you export from the command-line, it runs the notebook to completion. But I assume your notebook doesn't take 30 minutes to run normally?
That sounds like a bug. For us to help — can you share a notebook that we can use to reproduce this issue?
Thanks for the quick response! Let me trim down the sensitive info out
When you export from the command-line, it runs the notebook to completion. But I assume your notebook doesn't take 30 minutes to run normally?
No it's up ~instantly
@KnightArthurRen — do you have a repro to share? We're happy to help debug.
@akshayka Unfortunately no it's not quite an internal notebook, I also noticed the notebook is heavily outdated so we are working on updating that first
@KnightArthurRen is this still an issue?
Hey @akshayka Sorry we never actually got to clean it up, I'll close this out and I might ping you guys later!