I have been monitoring this thread and have this to offer.
First, VPython in Jupyter Lab works perfectly with Firefox on macOS Sonoma. I'm sitting here running it right now (screenshot attached) and did for a number of years after moving away from Chrome. It does not work in LibreWolf and I would not expect it to because LibreWolf is a fork of Firefox that is heavily modified for privacy and security and I don't think it's worth troubleshooting LibreWolf. WebVPython (formerly known as GlowScript) also works just fine in Firefox and always has.
Second, there are problems with conda-forge packages that have not existed before. I've spent the past two days experimenting with various installation procedures that I would have thought would be equivalent but they are not. I too ended up with a non-functioning installation on my M1 iMac and M3 MacBook Air when I tried to separately install VPython. I got error messages saying sphere() wasn't defined (screenshot attached) despite not getting an error message for "from vpython import *". Something somewhere in the conda workflows has broken for Arm Macs and I have no knowledge of how to troubleshoot such things.
Sitting here just now, I did this:
conda create --name testing python=3.12
conda activate testing
conda install -c vpython vpython
and it failed with an error message about "no viable options". Screenshot attached.
conda install -c conda-forge vpython
and it worked for installation, but only Jupyter Lab gets installed, not Jupyter Notebook, which apparently is related to the sphere() error because because note that the notebook module is missing.
I finally had to create an environment by manually installing both Jupyter Notebook and Jupyter Lab from scratch and then installing vpython on top of that. I've tried so many combinations that I can't determine whether I used "conda install -c vpython vpython" or "conda install -c conda-forge vpython", but according to "conda list" I apparently used "conda install -c vpython vpython".
The bottom line is that something somewhere in the conda workflow has changed and I have no idea what it is or how to find it and fix it.
Joe Heafner
Sent from one of my Macs