I'm working through some Python examples in a book. Many of the codes listed calls for a module visual
. I believe visual was installed in older versions of Vpython. I am running Python 3.6 with Vpython 7 installed. I use a Mac computer. Many of the sample codes start with lines such as the following:
from visual import *
from visual.graph import *
from visual.graph import gdisplay, gcurve
from visual.controls import slider, controls, toggle
I learned from an internet search to replace the first line with:
from vpython import *
This doesn't work for other visual calls. My programs keep crashing because no module visual is found. Is there a way to get these calls to work?