I start out by typing the line from vpython import *, then evaluate that cell. Then I type sphere(), and evaluate that cell, and an image of a sphere comes up (so far so good). Then I click the circle arrow to “restart the kernel,” I re-evaluate the first cell (importing vpython), and then I change the second cell to sphere(pos=vec(1,0,0)). When I try to evaluate the second cell, I get the following error:
NameError Traceback (most recent call last)
<ipython-input-1-65100377a774> in <module>()
----> 1 sphere(pos=vec(1,0,0))
NameError: name 'sphere' is not defined
Here is a screen shot: