Skip to content

Pyodide gallery: Open in Workbench - #221

Merged
bdbarnett merged 1 commit into
mainfrom
pyodide-workbench-link
Oct 12, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
pyodide-workbench-link

Conversation

@bdbarnett

Copy link
Copy Markdown
Collaborator

The Pyodide demo page gets the button the MicroPython gallery has: under the screen, beside Show console, opening the example in Workbench in a new tab (the demo keeps running in the gallery's frame).

Workbench's simulator is MicroPython and takes its examples from the MicroPython gallery's file list, so the button shows only for an example that list has (<name>.py or a <name>/ package); a Pyodide-only example gets none. The page's stylesheet version moves to 7 so the button's style isn't served from an old cache.

Checked in Chromium on the page served locally: ?modules=piano&deps=… shows the button linking to workbench/?vm=1&example=piano with target=_blank; an unknown name and the bare page show none.

@bdbarnett
bdbarnett merged commit c64f7e0 into main Oct 12, 2026
4 checks passed
@bdbarnett
bdbarnett deleted the pyodide-workbench-link branch October 12, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant