René's URL Explorer Experiment


Title: canvas.visible = False freezes the last frame instead of hiding the canvas · Issue #231 · vpython/glowscript · GitHub

Open Graph Title: canvas.visible = False freezes the last frame instead of hiding the canvas · Issue #231 · vpython/glowscript

X Title: canvas.visible = False freezes the last frame instead of hiding the canvas · Issue #231 · vpython/glowscript

Description: The docs say that with canvas.visible = False, "no objects are displayed in this canvas." Instead, the canvas freezes on its last frame. This was reported on the glowscript-users list on 2026-11-12. Web VPython 3.2 b = canvas(background=...

Open Graph Description: The docs say that with canvas.visible = False, "no objects are displayed in this canvas." Instead, the canvas freezes on its last frame. This was reported on the glowscript-users list on 2026-11-12...

X Description: The docs say that with canvas.visible = False, "no objects are displayed in this canvas." Instead, the canvas freezes on its last frame. This was reported on the glowscript-users list on ...

Opengraph URL: https://github.com/vpython/glowscript/issues/231

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"canvas.visible = False freezes the last frame instead of hiding the canvas","articleBody":"The docs say that with `canvas.visible = False`, \"no objects are displayed in this canvas.\" Instead, the canvas freezes on its last frame. This was reported on the glowscript-users list on 2026-11-12.\n\n```python\nWeb VPython 3.2\nb = canvas(background=color.white, range=2)\nc = box(color=color.green)\nrate(1)\nb.visible = False\nd = box(pos=vec(.5,1,0), color=color.blue)\nrate(.5)\nb.visible = True\nrate(1)\nb.visible = False\n```\n\nWhat the user sees:\n\n| | Expected | Actual |\n|---|---|---|\n| After `b.visible = False` | The canvas shows nothing | The green box stays; the scene can't be rotated |\n| After the blue box is created | Nothing appears | Nothing appears |\n| After `b.visible = True` | Both boxes | Both boxes, and rotation works again |\n| After the second `False` | The canvas shows nothing | Both boxes stay, frozen |\n\n## Cause\n\n`canvas.visible` is a plain attribute (`lib/glow/canvas.js:215`) with no setter, so changing it does nothing right away. The renderer checks it once per frame (`lib/glow/WebGLRenderer.js:439`) and returns early when it is False. Nothing is drawn, but nothing is cleared either, so the last frame stays on screen. The camera still moves when the user drags, but it isn't redrawn, so it looks as if rotation is broken.\n\n## Proposed fix\n\nGive `visible` a setter in `canvas.js` that hides the 3D canvas when it is False and shows it again when it is True. That matches classic VPython, where the window goes away. Keep the renderer's early return so no GPU time is spent on a hidden canvas.\n\nDecided: `visible=False` hides only the 3D area. The canvas's title and caption stay visible.\n\nrsWVPRunner has the same code, so the fix needs porting there too.\n","author":{"url":"https://github.com/sspickle","@type":"Person","name":"sspickle"},"datePublished":"2026-11-13T08:57:58Z","url":"https://github.com/vpython/glowscript/issues/231"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:887f8d49-6f66-e655-85e1-315bc896ed64
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9370:49948:6969C5:8F49B8:6B00774E
html-safe-nonced55b5763dda2b8e39ca04149662044aa4650fe2afdfd571c78c21a15283879ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzcwOjQ5OTQ4OjY5NjlDNTo4RjQ5Qjg6NkIwMDc3NEUiLCJ2aXNpdG9yX2lkIjoiMTkzODcxMzkzOTYwMDc2Njc5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a0035d309e0dc90989b56d56ff0d6a13c84bb870089b2603641b2c9c80e4eb2
hovercard-subject-tagissue:6368149832
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/glowscript/231/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0e28494f139edd068d662d96af51e6f59a27a3722f3c643c89adb1d1d7513a7c/vpython/glowscript/issues/231
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e28494f139edd068d662d96af51e6f59a27a3722f3c643c89adb1d1d7513a7c/vpython/glowscript/issues/231
og:image:altThe docs say that with canvas.visible = False, "no objects are displayed in this canvas." Instead, the canvas freezes on its last frame. This was reported on the glowscript-users list on 2026-11-12...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesspickle
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
go-importgithub.com/vpython/glowscript git https://github.com/vpython/glowscript.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id187905631
octolytics-dimension-repository_nwovpython/glowscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187905631
octolytics-dimension-repository_network_root_nwovpython/glowscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/vpython/glowscript/issues/231#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fissues%2F231
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%2Fglowscript%2Fissues%2F231
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=vpython%2Fglowscript
Reloadhttps://github.com/vpython/glowscript/issues/231
Reloadhttps://github.com/vpython/glowscript/issues/231
Reloadhttps://github.com/vpython/glowscript/issues/231
vpythonhttps://github.com/vpython
glowscripthttps://github.com/vpython/glowscript
Codehttps://github.com/vpython/glowscript
Issues9 (9)https://github.com/vpython/glowscript/issues
Pull requests2 (2)https://github.com/vpython/glowscript/pulls
Actionshttps://github.com/vpython/glowscript/actions
Projectshttps://github.com/vpython/glowscript/projects
Security and qualityhttps://github.com/vpython/glowscript/security
Insightshttps://github.com/vpython/glowscript/insights
https://github.com/vpython/glowscript
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/231
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/231
canvas.visible = False freezes the last frame instead of hiding the canvashttps://github.com/vpython/glowscript/issues/231#top
https://github.com/sspickle
sspicklehttps://github.com/sspickle
on Nov 13, 2026https://github.com/vpython/glowscript/issues/231#issue-6368149832
Sign up for freehttps://github.com/signup?return_to=https://github.com/vpython/glowscript/issues/231
Sign in to commenthttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/231
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.