Portable offline WASM export for the fit app and docs explorers - #31
Merged
Merged
Conversation
Export both the browser fit app and all nine documentation explorers with `marimo export html-wasm --offline`: the Python runtime, Pyodide, and every dependency wheel (including rheofit for the fit app) now ship with the page, so both boot with no network access and never touch a package index at runtime. - deploy-app.yml: install headless Chromium via Playwright, export app/fit_app.py with --offline - docs/export_interactive.py: export all explorers with --offline, then share the identical runtime (assets/pyodide/packages/lockfile) across all nine via docs/_static/interactive/_shared/ (one ~59 MB runtime instead of nine) - docs/requirements.txt: marimo>=0.25, add playwright - docs.yml CI build job: install Chromium for the offline export - .readthedocs.yaml: apt packages for headless Chromium + `playwright install chromium` in pre_build Verified: fit app reaches its upload screen and the TC explorer its full working screen (sliders live, plot renders) with all external requests blocked — zero external requests, zero page errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the browser fit app and all nine documentation explorers boot with no network access.
What changes
marimo export html-wasm --offlineforapp/fit_app.py(deploy-app.yml) and all nine explorers (docs/export_interactive.py): the Python runtime, Pyodide, and every dependency wheel — including rheofit and its SciPy/pandas/matplotlib/openpyxl stack for the fit app — now ship with the page. Nothing is fetched from a package index at runtime.assets/pyodide/packages/lockfiledirectories are moved todocs/_static/interactive/_shared/and each explorer page references them relatively. One ~59 MB runtime instead of nine (~530 MB saved per docs build).playwright install chromiumstep in.readthedocs.yaml(marimo>=0.25 in docs/requirements.txt).Verification
Notes for review