Repository navigation
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.
Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory #291
Changes from 1 commit
3c06704b64d142ae16fc758c22ff379672f3772014502d6f80a6ddbe393c1d647875afec6d59d68eff8c2504893c8fd10a77521bb6c357e6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…ed events Two review findings on the port. 1. The canvas case handed glow a raw DOM element and replaced __context on every canvas cmd. __context is glow's own scratch space (canvas_selected, canvas_all, print_container), and upstream ran its container lookup at most once, so replacing it wipes state belonging to canvases already on the page. glow also stores the container as a jQuery object — the setter is `glowscript_container = $(value)` and the print path calls `canvas.container.css(...)`, which throws on a bare element. Now merges into any existing __context and wraps with glow.$ / $ / jQuery, warning if it cannot find one. 2. Four of the six deferred stubs forwarded a synthesized payload to opts.send. Those payloads are not protocol-valid: control_handler emitted {idx, widget} with idx/value missing, and process_binding/process_waitfor emitted {event: undefined}. vpython.py handle_msg (vpython.py:398-427) routes any event with a 'widget' key through object_registry[evt['idx']] and reads evt['value']/evt['text'] before calling the user's bind callback, and routes everything else through object_registry[evt['canvas']] into canvas.handle_event's `ev = evt['event']` (vpython.py:3288). A partial event raises inside the kernel's message loop, so once a live send is wired any widget click or bound event would crash the run. control_handler, process_binding, process_waitfor and process_pause are now warn-and-drop. send_pick and send_compound keep forwarding — their payloads are byte-faithful to glowcomm.js, and both are synchronous barriers Python blocks on. Pinned by the consumer's unit suite, which now fails against the previous commit on both points ("expected undefined to deeply equal [ 'pre-existing' ]" and "expected [ [ { idx: undefined, ... } ] ] to deeply equal []"). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7y9rTA1r8r8EhEnPSQenRUh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing