Skip to content

demo: per-page WASM opt-in (functions + matplotlib) - #639

Open
kp992 wants to merge 2 commits into
jb2from
jb2-wasm-demo
Open

kp992 wants to merge 2 commits into
jb2from
jb2-wasm-demo

Conversation

@kp992

@kp992 kp992 commented Sep 30, 2026 •

Copy link
Copy Markdown

Builds on top of #363. Adds selective in-browser WASM execution via two new theme options.

What this does

  • project.jupyter.lite: true in myst.yml wires up the Thebe/JupyterLite infrastructure.
  • default_thebe: false in site.options keeps the Power toggle hidden everywhere by default.
  • Pages that set site: enable_thebe: true in their frontmatter show the toggle.
  • Demo: functions.md and matplotlib.md are opted in (numpy/scipy/matplotlib, all Pyodide-compatible). All other lectures are unaffected.

Theme changes (branch per-page-thebe on QuantEcon/quantecon-theme.mystmd)

Three new template options: enable_thebe, disable_thebe, default_thebe. Page.tsx derives notebookCompute from them; ThebeLoaderAndServer is always rendered so the provider chain stays intact.

- project.jupyter.lite: true enables Thebe infrastructure
- default_thebe: false (site.options) keeps Power toggle hidden by default
- functions.md and matplotlib.md opt in via site: enable_thebe: true
- ci.yml builds theme from per-page-thebe branch (temporary until release)
@github-actions

Copy link
Copy Markdown

@kp992

kp992 commented Sep 30, 2026

Copy link
Copy Markdown
Author

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant