Dear All,
I am completely new to VPython. I have managed to install VPython for python 2.7 on my Ubuntu 16.10 machine using the command
sudo apt-get install python-visual
and run a few cool examples. It works, but has two problems
1) It appears to be significantly outdated, to the extent where tutorial commands like myface.make_twosided() are not recognised.
2) I am using Python 3.5 for my large simulation code, and I would like to make a VPython visualization to be part of that code, thus using Python 3.5
I would prefer to avoid using anaconda etc. I don't quite understand how it works, especially on how to install an anaconda module that is not part of anaconda, and how to resolve any following conflicts.
So far I have tried installing via
sudo pip3 install vpython
However, when I call
>>> from visual import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'visual'
>>> from vpython import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/vpython/__init__.py", line 10, in <module>
from .vpython import *
File "/usr/local/lib/python3.5/dist-packages/vpython/vpython.py", line 442, in <module>
get_ipython().kernel.comm_manager.register_target('glow', GlowWidget)
AttributeError: 'NoneType' object has no attribute 'kernel'
Would you be so kind to explain to me how to solve this problem?
If the way I have installed VPython is not correct, please suggest how to do so. I will not have the need for browser-based visualization, just plain simple console.
Best regards,
Aleksejs Fomins
PhD student of Nanophotonics and Metrology Lab,
EPFL, Switzerland