Title: The MyBinder launch on the main page doesn't seem to produce a working session · Issue #284 · vpython/vpython-jupyter · GitHub
Open Graph Title: The MyBinder launch on the main page doesn't seem to produce a working session · Issue #284 · vpython/vpython-jupyter
X Title: The MyBinder launch on the main page doesn't seem to produce a working session · Issue #284 · vpython/vpython-jupyter
Description: I am seeing current launches from the 'launch binder' badge on the main page fail to produce a session where VPython works in notebooks. (Shows the error that is featured in this open issue entitled "AttributeError: module 'notebook' has...
Open Graph Description: I am seeing current launches from the 'launch binder' badge on the main page fail to produce a session where VPython works in notebooks. (Shows the error that is featured in this open issue entitle...
X Description: I am seeing current launches from the 'launch binder' badge on the main page fail to produce a session where VPython works in notebooks. (Shows the error that is featured in this open issue...
Opengraph URL: https://github.com/vpython/vpython-jupyter/issues/284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The MyBinder launch on the main page doesn't seem to produce a working session","articleBody":"I am seeing current launches from the '`launch binder`' badge on the main page fail to produce a session where VPython works in notebooks. (Shows the error that is featured in [this open issue entitled \"AttributeError: module 'notebook' has no attribute 'nbextensions'\"](https://github.com/vpython/vpython-jupyter/issues/254).) \n\nI am unclear exactly why it doesn't work since the Python version in the session is within the range I see [here](https://vpython.org/presentation2018/install.html) listed as working. (There says Python 3.8 through 3.12 and it seems the launch from the badge is 3.10.) Additionally, VPython does indeed work in notebooks via sessions served by the MyBinder service if you just install it in standard session launched from [the JupyterLab repo](https://github.com/jupyterlab/jupyterlab#jupyterlab) using `%pip install vpython` and restart the kernel and do a hard refresh on the notebook page before trying. (In Mac Chrome, the key combination for the hard refresh is Command+Shift+R.) (Technical note on Python version: the MyBinder-served session that I got from [the JupyterLab repo](https://github.com/jupyterlab/jupyterlab#jupyterlab) currently launches with Python 3.12.12.) However, that process is probably only a viable option for advanced users. \nGiven that, along with being unsure of the exact issue or what is the current way the developers may want to tackle this, I offer a workaround for those wishing to use MyBinder-served sessions with VPython for now.\n\n### Offered workaround for now:\n\n\nI updated my fork to be current and, importantly, result in launches that at this time has VPython working in Jupyter Notebooks served via the MyBinder service: \nhttps://github.com/fomightez/vpython-jupyter/tree/master \n\nYou can launch a session from here with this badge: \n[](https://mybinder.org/v2/gh/fomightez/vpython-jupyter/HEAD?urlpath=%2Ftree%2Findex.ipynb)\n\n------------------------\n\n#### Further Details for the Developers or those considering implementing there own repos to offer VPython\n\nWhat is needed to do this at this time is much less than the detailed requirements listed [here](https://github.com/vpython/vpython-jupyter/issues/254#issuecomment-1950993761), see https://github.com/fomightez/vpython-jupyter/blob/master/binder/environment.yml . (Even that list could have been simpler; however, I wanted some packages I commonly use to be present.) I put [my `environment.yml`](https://github.com/fomightez/vpython-jupyter/blob/master/binder/environment.yml) in a `binder` subdirectory to keep it separate from any directives the root directory may have; MyBinder / Binder resources use that preferentially. [My `environment.yml`](https://github.com/fomightez/vpython-jupyter/blob/master/binder/environment.yml) is specifying for conda to install VPython from the conda-forge channel. So in essence the the repo content outside of the `binder` subdirectory is only used as a source of the test notebooks. If this wasn't a fork of the main VPython development (I believe), I could have made a streamlined repo with just the `environment.yml` in root (or a `binder` subdirectory`) and pulled in the test notebooks from the https://github.com/vpython/vpython-jupyter/ repo using `start` / `postBuild`) [post-build actions configuration file](https://repo2docker.readthedocs.io/en/latest/configuration/actions/), similar to what I do [here](https://github.com/fomightez/3Dscatter_plot_mod_playground-binder/blob/main/start), [here](https://github.com/fomightez/patmatch-binder/blob/master/start), & [here](https://github.com/fomightez/millefy-binder/blob/master/binder/postBuild). This allows the content to be separate from the repo specifying the environment for the Binder / MyBinder sessions.","author":{"url":"https://github.com/fomightez","@type":"Person","name":"fomightez"},"datePublished":"2026-02-20T18:04:11Z","url":"https://github.com/vpython/vpython-jupyter/issues/284"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ad713ed-bdde-2ce1-a99e-3c12108f80d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C936:3C7498:3FC612:591B33:6B006FA7 |
| html-safe-nonce | f319e9270f89ff34e4ff07d6785197d3ef72f85419c9a9cc7d6a0b4f9d6ce898 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTM2OjNDNzQ5ODozRkM2MTI6NTkxQjMzOjZCMDA2RkE3IiwidmlzaXRvcl9pZCI6IjU1ODM0MjIwMDE1NzUzOTExNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3a0467fcdf6e633b0db4bf69e3a92976f5ab77beade6f321f039e0634a5679bc |
| hovercard-subject-tag | issue:3969727780 |
| 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/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b45f48f3c60f4b0819ac11aca4347842dea040475de2a558b85aad84b680fa8/vpython/vpython-jupyter/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b45f48f3c60f4b0819ac11aca4347842dea040475de2a558b85aad84b680fa8/vpython/vpython-jupyter/issues/284 |
| og:image:alt | I am seeing current launches from the 'launch binder' badge on the main page fail to produce a session where VPython works in notebooks. (Shows the error that is featured in this open issue entitle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fomightez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width