-
Notifications
You must be signed in to change notification settings - Fork 61
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 no attribute 'nbextensions'".)
Since I am unclear exactly why it doesn't work since the Python version in the session is within the range I see here listed as works. (There says 3.8 through 3.12 and it seems the launch from the badge is 3.10) or what is the current way the developers want to tackle this since it does indeed work via MyBinder if you just install it in standard session launched from the JupyterLab repo, which currently launches with Python 3.12.12) using %pip install vpython and restart the kernel and do a hard refresh on the page before trying. (In Mac Chrome, the key comination for the hard refresh is Command+Shift+R), I offer a workaround for those wishing to use MyBinder-served sessions with VPython for now.
Offered workaround for now:
I 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:
https://github.com/fomightez/vpython-jupyter/tree/master
You can launch a session from here with this badge:
What is needed to do this at this time is much less than the detailed requirements listed here, 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 that environment.yml in a binder subdirectory to keep it separate from any directives root may have; MyBinder / Binder resources use that preferentially.