Traceback (most recent call last):
File "star_scr.py", line 1, in <module>
from vpython import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vpython/__init__.py", line 10, in <module>
from .vpython import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vpython/vpython.py", line 417, in <module>
get_ipython().kernel.comm_manager.register_target('glow', GlowWidget)
AttributeError: 'NoneType' object has no attribute 'kernel'
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 1082, in run
self.function(*self.args, **self.kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vpython/vpython.py", line 384, in commsend
next_call = next_call+rate.interactionPeriod
AttributeError: 'NoneType' object has no attribute 'interactionPeriod'
Correct. Jupyter VPython (as the name implies) must run in a Jupyter notebook, as the 3D graphics is rendered by the WebGL graphics library that is built into browsers. But a Jupyter notebook Python program that imports vpython can also import any other Python module.
--
You received this message because you are subscribed to a topic in the Google Groups "VPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vpython-users/AIqkaSFdGaQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vpython-users+unsubscribe@googlegroups.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.