Error "AttributeError: object" NoneType "does not have a core attribute when using just vpython

I'm just starting to try using vpython, hoping to eventually use it to simulate an elliptical or parabolic orbit. I downloaded the module and tried to create a simple sphere, and when I do this, I get the above error. As far as I can tell, I correctly defined / named the function. Here is my code

from vpython import *
Sun = sphere(pos=(0,0,0), radius =0.5))
+4
source share
3 answers

vpython IPython ( Python , , - python).

vpython PPL REPL, get_ipython() None, .

IPython - Jupyter, http://jupyter.org/. jupyter notebook, , , .

0

vpython. . vpython Mac Windows ( ). , vpython Ubuntu 16. , python. 1.) vpython PIP ( .py). sudo apt install python-pip, python-pip . 2.) , pip, vpython : sudo pip install vpython ( admin privs). , pip , : sudo pip install --upgrade pip 3.) ( "NoneType" ' kernel ') / ( visual), python IDLE vpython * * python IDLE. - , vpython .py- ( ), vpython - script, , jupyter-notebook ( "y" "-" ). jupyter-notebook - , .py. 4.) jupyter-notebook . script , , -, Javascript, - WebGL. 5.) , vpython.org, "" ( jupyter) "Vpython" . 6.) python , python IDLE.

0

, "", "".

:

from visual import *
Sun = sphere(pos=(0,0,0), radius=0.5))

http://www.vpython.org/contents/docs_vp5/visual/VPython_Intro.pdf

-2

All Articles