Description
A new export type marimo export html-wasm that exports the app as a runnable wasm notebook. This should output slightly different HTML that runs the notebook in wasm instead of a static notebook.
Suggested solution
Rather than piggy-backing off marimo export html, we should create a new subcommand html-wasm, because the CLI args will diverge (--mode vs --include-code, already, and more to come).
The exported wasm should have a warning if the current window protocol is file:// because wasm/webworkers will not work in this context. So the warning should be clear that is must be hosted.
Alternative
No response
Additional context
No response
Description
A new export type
marimo export html-wasmthat exports the app as a runnable wasm notebook. This should output slightly different HTML that runs the notebook in wasm instead of a static notebook.Suggested solution
Rather than piggy-backing off
marimo export html, we should create a new subcommandhtml-wasm, because the CLI args will diverge (--mode vs --include-code, already, and more to come).The exported wasm should have a warning if the current
windowprotocolisfile://because wasm/webworkers will not work in this context. So the warning should be clear that is must be hosted.Alternative
No response
Additional context
No response