We recommend installing the Anaconda Python distribution.
The vpython module currently works with Python versions 3.8, 3.9, and 3.10.
The 3D displays are rendered by WebGL in a browser window. For details, see
https://vpython.org/contents/VPythonArchitecture.pdf
The vpython module is available using
"conda install -c vpython vpython" or
"conda install -c conda-forge vpython" or
"conda install -c conda-forge/label/cf202003 vpython" or
"pip install vpython"
To update to later versions of vpython use
"conda update -c vpython vpython" or
"pip install -U vpython"
When running from a terminal, if the program does not end with a loop
containing a rate() statement, you need to add "while True: rate(30)"
to the end of the program. This is not necessary when launching from
environments such as Jupyter notebook, IDLE, or Spyder.
I don't recognize the Python statement "foo a = vector(1,0,0)", and I find that without importing vpython the statement "foo a = 37" gives an error. What am I missing?Bruce
--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vpython-users/678e69aa-b979-4282-a78a-84aab7a2d9c4n%40googlegroups.com.
from vpython import *
a = vec(1, 1, 1)
b = 10
print(b*a)
Hi,I've got the same version with Python 3.10 and Python 3.11. I've installed Cython first. I'm on windows. I realise that 3.11 isn't supported but it *does* successfully build from source.
I managed to just do pip install vpython==7.6.3 for now, and that's working on both 3.10 and 3.11 for now; no errors.