Title: Embedding Vpython7 in a web page · Issue #217 · vpython/vpython-jupyter · GitHub
Open Graph Title: Embedding Vpython7 in a web page · Issue #217 · vpython/vpython-jupyter
X Title: Embedding Vpython7 in a web page · Issue #217 · vpython/vpython-jupyter
Description: Hi -- New to VPython, in many ways it is my dream platform. The Jupyter integration is awesome, but I want to utilize the browser capabilities to embed VPython in a page. Note that I do not want to transpile into glowscript; I want to ru...
Open Graph Description: Hi -- New to VPython, in many ways it is my dream platform. The Jupyter integration is awesome, but I want to utilize the browser capabilities to embed VPython in a page. Note that I do not want to...
X Description: Hi -- New to VPython, in many ways it is my dream platform. The Jupyter integration is awesome, but I want to utilize the browser capabilities to embed VPython in a page. Note that I do not want to...
Opengraph URL: https://github.com/vpython/vpython-jupyter/issues/217
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Embedding Vpython7 in a web page","articleBody":"Hi -- New to VPython, in many ways it is my dream platform. The Jupyter integration is awesome, but I want to utilize the browser capabilities to embed VPython in a page. Note that I do _not_ want to transpile into glowscript; I want to run a standard Python server and allow users to connect and have an interactive 3D experience.\r\n\r\nI see that it is architected as a client-server app using websockets, running standard Python and opening a web browser on a random port on localhost. It seems to me there should be an easy way to run the server headless so to speak, and have it respond to http requests from a browser over a fixed port -- but I can't find any documentation or examples of this approach.\r\n\r\nAs a dirty POC, I hacked no_notebook.py to use a hard-coded port, and commented out the code that launches a browser. (This is a better dev experience already as the browser launch code does not play nicely with Ubuntu/gnome's multiple workspaces, but I digress...)\r\n\r\nIt seems a small step from here to serving on say port 5123, and wrapping nginx TLS around it so the browser can hit https://mysite and Bob's your uncle...\r\n\r\nSo -- I guess this is a feature request? I could probably pull together a PR on this - unless there is some obvious way to do it on the platform as it exists, but I get the feeling there has been more focus on the notebook implementation.\r\n\r\nAny leads or suggestions greatly appreciated. And Thank You for contributing to the Open Source community!","author":{"url":"https://github.com/danx0r","@type":"Person","name":"danx0r"},"datePublished":"2022-08-11T03:02:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/217/vpython-jupyter/issues/217"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f8384fda-9504-1262-9e0d-e0f018ccfb94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2FA:C3485:A830BA:D873E8:69758CD4 |
| html-safe-nonce | 15d3522c27e16e5682326e49ca7e0130dfe36f55dfcce85d91d96028568f68d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkZBOkMzNDg1OkE4MzBCQTpEODczRTg6Njk3NThDRDQiLCJ2aXNpdG9yX2lkIjoiMjA4MTU1Mjg0ODA1Mzk2Mzk4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c59295c85f79e5badef3ce61b05ad09e87d75df43de3f4f7ff89d6cf20cce22a |
| hovercard-subject-tag | issue:1335411954 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/vpython-jupyter/217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d587dd56d6441e46f203408447ce0a46c3ec1ca52de18198103f9c3a1a5d4947/vpython/vpython-jupyter/issues/217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d587dd56d6441e46f203408447ce0a46c3ec1ca52de18198103f9c3a1a5d4947/vpython/vpython-jupyter/issues/217 |
| og:image:alt | Hi -- New to VPython, in many ways it is my dream platform. The Jupyter integration is awesome, but I want to utilize the browser capabilities to embed VPython in a page. Note that I do not want to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danx0r |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/vpython/vpython-jupyter git https://github.com/vpython/vpython-jupyter.git |
| octolytics-dimension-user_id | 1280757 |
| octolytics-dimension-user_login | vpython |
| octolytics-dimension-repository_id | 187905226 |
| octolytics-dimension-repository_nwo | vpython/vpython-jupyter |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 187905226 |
| octolytics-dimension-repository_network_root_nwo | vpython/vpython-jupyter |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width