Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.

Gallery: an Open in Workbench button on each demo page - #218

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

bdbarnett merged 1 commit into
mainfrom
workbench-link

Conversation

@bdbarnett

@bdbarnett bdbarnett commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

The direct-MicroPython demo page (micropython.html?modules=... / ?manifests=...) now has an "Open in Workbench" button beside Reset. It links the example it is showing to Workbench as https://pydevices.github.io/workbench/?vm=1&example=<name>, which opens it there in the simulator with the entry file in the editor, ready to edit, run, or put on a board.

The button is hidden on a page with no example in its address. Checked locally: ?manifests=alien links ?vm=1&example=alien, ?modules=calc_lvgl,calc_engine links ?vm=1&example=calc_lvgl, and a bare page keeps it hidden. The gallery index cards are unchanged (a card is one link already).

Needs the Workbench side, PyDevices/workbench#11, to be live before the button leads anywhere useful.

The direct-MicroPython demo page now links the example it is showing to
Workbench (?vm=1&example=<name>), which opens it there in the simulator
with the entry file in the editor, ready to edit, run, or put on a board.
@bdbarnett
bdbarnett merged commit 9ef28e1 into main Oct 11, 2026
4 checks passed
@bdbarnett
bdbarnett deleted the workbench-link branch October 11, 2026 23:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant