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.
It is very difficult for me to tell you how to use Python 3.11 because I don't know exactly how you installed Python 3.11.
if scene.mouse.clicked:
m = scene.mouse.getclick()
loc = m.pos
print(loc)
sphere(pos=loc, radius=0.1, color=(1,0,0))
This is documentation for Classic VPython (VPython 6), which is no longer supported but is provided here as historical material. See vpython.org for information on installing the vpython module or using Web VPython. Documentation is available at webvpython.org by clicking Help.
--
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/fbbf2d99-7247-4a1e-82ef-2b0f30e3ce8bn%40googlegroups.com.
--
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/5ece6337-7b78-4a78-b7d0-025fdd750162n%40googlegroups.com.