René's URL Explorer Experiment


Title: Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory by sspickle · Pull Request #291 · vpython/vpython-jupyter · GitHub

Open Graph Title: Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory by sspickle · Pull Request #291 · vpython/vpython-jupyter

X Title: Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory by sspickle · Pull Request #291 · vpython/vpython-jupyter

Description: Experimental / draft: makes vpython installable and runnable on Pyodide/wasm targets, and gives downstream consumers a pinned pure-Python wheel artifact to build against. This is the packaging half of the trinket adoption work (running vpython-jupyter inside trinket's Pyodide web-worker runtime, GlowScript rendering on the page); the trinket-side integration lands separately and pins the wheel this CI produces. What's here (14 commits, rebased onto current master) Pure-Python wheel path: VPYTHON_PURE_PYTHON=1 builds with no C extension → a py3-none-any wheel, which is what Pyodide/micropip require (they cannot install platform wheels). Nothing is lost but speed: _vector_import_helper already falls back to the pure-Python vector when cyvector is absent. Ordinary builds are completely unchanged — this is opt-in via the env var. glowcomm_host.js: a front-end factory extracted from the notebook glue so a non-Jupyter host page (or worker client) can drive the GlowScript canvas from the same glowcomm message stream. trinket_worker.py: transport shim for driving vpython from a web worker — async rate() (cooperative, doesn't block the worker's message pump) and loud stubs for the notebook-only surface. CI (pure-wheel.yml): every push to master/this branch builds the pure wheel, asserts it is py3-none-any and importable, sha256-sums it, uploads it as an actions artifact, and attaches it to GitHub releases — so consumers pin by URL + sha256 without coupling to PyPI release cadence. (PyPI publication of the pure wheel can follow once this stabilizes.) Housekeeping: .venv/ gitignored. Verification Full test suite (now 8 tests after #290) passes on the rebased branch in a clean python:3.12 container. VPYTHON_PURE_PYTHON=1 python -m build --wheel verified to produce vpython-…-py3-none-any.whl, and the wheel installs + imports. The two rebase conflicts were both benign overlaps with #289 (this branch had independently dropped pkg_resources); resolved to master's shipped form. Why draft The API surface of glowcomm_host.js/trinket_worker.py should be considered unstable until the trinket-side integration exercises it end-to-end. Review welcome on the packaging/CI pieces now — the pure-wheel mechanism stands on its own. 🤖 Generated with Claude Code https://claude.ai/code/session_01G7y9rTA1r8r8EhEnPSQenR

Open Graph Description: Experimental / draft: makes vpython installable and runnable on Pyodide/wasm targets, and gives downstream consumers a pinned pure-Python wheel artifact to build against. This is the packaging half...

X Description: Experimental / draft: makes vpython installable and runnable on Pyodide/wasm targets, and gives downstream consumers a pinned pure-Python wheel artifact to build against. This is the packaging half...

Opengraph URL: https://github.com/vpython/vpython-jupyter/pull/291

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d0f25502-2e1b-1074-cb4e-c8726631f62e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1C8:3E191E:448C0B:5DF076:6B006FBE
html-safe-nonce93d3facc58d4a95bff17a7395a178901bf2ca6c97fdf00fead93d4498a4db0ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUM4OjNFMTkxRTo0NDhDMEI6NURGMDc2OjZCMDA2RkJFIiwidmlzaXRvcl9pZCI6IjI5NTA5Mjk2Njg4Njc2NDQ3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6b0c2969b7ecc658e18e7d7cae16a49347d68b2923f37b442fa043be0e776ed0
hovercard-subject-tagpull_request:4287960582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/vpython/vpython-jupyter/pull/291/files
twitter:imagehttps://avatars.githubusercontent.com/u/1708412?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1708412?s=400&v=4
og:image:altExperimental / draft: makes vpython installable and runnable on Pyodide/wasm targets, and gives downstream consumers a pinned pure-Python wheel artifact to build against. This is the packaging half...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/vpython/vpython-jupyter git https://github.com/vpython/vpython-jupyter.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id187905226
octolytics-dimension-repository_nwovpython/vpython-jupyter
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187905226
octolytics-dimension-repository_network_root_nwovpython/vpython-jupyter
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/vpython/vpython-jupyter/pull/291/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fvpython-jupyter%2Fpull%2F291%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fvpython-jupyter%2Fpull%2F291%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=vpython%2Fvpython-jupyter
Reloadhttps://github.com/vpython/vpython-jupyter/pull/291/files
Reloadhttps://github.com/vpython/vpython-jupyter/pull/291/files
Reloadhttps://github.com/vpython/vpython-jupyter/pull/291/files
vpythonhttps://github.com/vpython
vpython-jupyterhttps://github.com/vpython/vpython-jupyter
Codehttps://github.com/vpython/vpython-jupyter
Issues26 (26)https://github.com/vpython/vpython-jupyter/issues
Pull requests4 (4)https://github.com/vpython/vpython-jupyter/pulls
Actionshttps://github.com/vpython/vpython-jupyter/actions
Projectshttps://github.com/vpython/vpython-jupyter/projects
Security and qualityhttps://github.com/vpython/vpython-jupyter/security
Insightshttps://github.com/vpython/vpython-jupyter/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fvpython%2Fvpython-jupyter%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fvpython%2Fvpython-jupyter%2Fissues%2Fnew%2Fchoose
sspicklehttps://github.com/sspickle
masterhttps://github.com/vpython/vpython-jupyter/tree/master
pyodide-packaginghttps://github.com/vpython/vpython-jupyter/tree/pyodide-packaging
Conversation 0 https://github.com/vpython/vpython-jupyter/pull/291
Commits 16 https://github.com/vpython/vpython-jupyter/pull/291/commits
Checks 14 https://github.com/vpython/vpython-jupyter/pull/291/checks
Files changed https://github.com/vpython/vpython-jupyter/pull/291/files
Please reload this pagehttps://github.com/vpython/vpython-jupyter/pull/291/files
Pyodide/wasm support: pure-Python wheel, worker transport, GlowScript host factory https://github.com/vpython/vpython-jupyter/pull/291/files#top
Show all changes 16 commits https://github.com/vpython/vpython-jupyter/pull/291/files
3c06704 build: allow a pure-Python wheel, and drop pkg_resources sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/3c0670431e3f33b9ba845001ab490dda71a8f0fb
b64d142 feat: a wasm/Web-Worker transport — the host supplies the pipe sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/b64d142bef22c9ef56a7c208a55dff6b2d8108fe
ae16fc7 feat: host-agnostic browser front-end ported from glowcomm.js sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/ae16fc760c1891bcef45d0af0c7fc2c4e52c0dd3
58c22ff fix: don't clobber glow's __context, and drop (not forward) synthesiz… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/58c22ff9e52153b963003014bb8a91776d007c0b
379672f feat(worker): eager boot + async rate/sleep + loud deferrals for wasm… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/379672f5296e7191ee0823040bc4e3a693af55dd
3772014 fix(worker): render cap, rate(0) parity, fixture isolation, stale com… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/37720140051b33e490650792abde16edf319ad5a
502d6f8 feat(worker): port glowcomm's event capture — mouse, keys, camera sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/502d6f868fb61dc9fd9ab6c08edf1ce7c038a328
0a6ddbe fix(worker): tell the front-end when the clock stops; poll the canvas… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/0a6ddbe8f6b53d23dd927ca040c481c3d00f1995
393c1d6 feat(worker): poll() — a pacing tick that stays quiet while rate() dr… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/393c1d6bc69be8cd63d50694ac01e2b6b3e226bd
47875af fix(worker): the loud-deferral list was five constructs short, and sl… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/47875afaef3b5e78fd9ea58ece49271993d3fe31
ec6d59d fix(worker): rate(N) slept a full period ON TOP of the student's loop… sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/ec6d59dbd3bb41de8d2049e01f4560dfc97858cd
68eff8c fix(worker): the await is right, the reason given for it was wrong sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/68eff8c455e62600d8cf79229dc354f53a4459c4
2504893 docs(worker): the mechanism was corrected everywhere EXCEPT the code … sspickle Aug 10, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/2504893f15d3f9b152cf09843c7cee48bd932a10
c8fd10a ci: build the pure-Python (py3-none-any) wheel as a pinned-artifact f… sspickle Aug 15, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/c8fd10ae6412a71ac17b104fc111e6c431b0fc87
77521bb ci: never publish pre-releases to PyPI sspickle Aug 15, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/77521bb165ea248d509426e2511a1e54c43dcd52
6c357e6 ci: fix invalid if under on.release — the guard belongs on jobs only sspickle Aug 15, 2026 https://github.com/vpython/vpython-jupyter/pull/291/commits/6c357e6c1a773ca614cc981bf6efea80ec8c46b2
Clear filters https://github.com/vpython/vpython-jupyter/pull/291/files
Please reload this pagehttps://github.com/vpython/vpython-jupyter/pull/291/files
Please reload this pagehttps://github.com/vpython/vpython-jupyter/pull/291/files
pure-wheel.yml https://github.com/vpython/vpython-jupyter/pull/291/files#diff-10ca93e22b87a85791a65c1794fa3e057fb2228b56489b405b55e4d4313cf00b
upload_pypi.yml https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
.gitignore https://github.com/vpython/vpython-jupyter/pull/291/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
setup.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
conftest.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
test_trinket_worker.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-6e09e0a993c5a84bb5b79e38ca72d11aa10d89bd3352e72e87f8ade37d451de9
__init__.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-8ec056d7e6b5ac1931b3d848dce861682e718527d0896b18db0f920795fb6e39
trinket_worker.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-16a16fad36a65ac5c2fe357d5e898b4294b8e6eb84c284561128a0ef00d6a85e
vpython.py https://github.com/vpython/vpython-jupyter/pull/291/files#diff-fa6a77b520b393ca69e2c44134dd875fc09c7c256fd78eb2fcd9adb73f3fe9d2
glowcomm_host.js https://github.com/vpython/vpython-jupyter/pull/291/files#diff-57105c4ebe6fa6976a71398ddb888452820a8304d92bed000958abdadd0d0814
.github/workflows/pure-wheel.ymlhttps://github.com/vpython/vpython-jupyter/pull/291/files#diff-10ca93e22b87a85791a65c1794fa3e057fb2228b56489b405b55e4d4313cf00b
View file https://github.com/vpython/vpython-jupyter/blob/6c357e6c1a773ca614cc981bf6efea80ec8c46b2/.github/workflows/pure-wheel.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/vpython/vpython-jupyter/pull/291/{{ revealButtonHref }}
.github/workflows/upload_pypi.ymlhttps://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
View file https://github.com/vpython/vpython-jupyter/blob/6c357e6c1a773ca614cc981bf6efea80ec8c46b2/.github/workflows/upload_pypi.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/vpython/vpython-jupyter/pull/291/{{ revealButtonHref }}
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-2303ef4fcda8db37431abb173f017800c2172a2f993ff4ffbbbdb578e62053fd
.gitignorehttps://github.com/vpython/vpython-jupyter/pull/291/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/vpython/vpython-jupyter/blob/6c357e6c1a773ca614cc981bf6efea80ec8c46b2/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/vpython/vpython-jupyter/pull/291/{{ revealButtonHref }}
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
setup.pyhttps://github.com/vpython/vpython-jupyter/pull/291/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
View file https://github.com/vpython/vpython-jupyter/blob/6c357e6c1a773ca614cc981bf6efea80ec8c46b2/setup.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/vpython/vpython-jupyter/pull/291/{{ revealButtonHref }}
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
https://github.com/vpython/vpython-jupyter/pull/291/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
tests/conftest.pyhttps://github.com/vpython/vpython-jupyter/pull/291/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
View file https://github.com/vpython/vpython-jupyter/blob/6c357e6c1a773ca614cc981bf6efea80ec8c46b2/tests/conftest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/vpython/vpython-jupyter/pull/291/{{ revealButtonHref }}
Please reload this pagehttps://github.com/vpython/vpython-jupyter/pull/291/files
Please reload this pagehttps://github.com/vpython/vpython-jupyter/pull/291/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.