问题
In Python2.7 all my visual scripts were running fine. When I use Python3.5 I get the error message:
get_ipython().kernel.comm_manager.register_target('glow', GlowWidget)
AttributeError: 'NoneType' object has no attribute 'kernel'
When I google the error message people say that you should use the jupyter notebook. But is it possible to run my old scripts without jupyter?
回答1:
you should install ipython and Jupyter Notebook, as following
sudo apt-get install ipython ipython-notebook
pip install jupyter
And then you can use jupyter notebook
in the terminal to start your notebook, from where you can create a new vpython notebook in your browser.
create vpython
and then you can write your vpython script and see the objects you created as following. draw a sphere
also you can refer to other blogs to install your jupyter notebook and so on. But make sure that you have installed vpython.
来源:https://stackoverflow.com/questions/40200920/run-vpython-in-python3-without-jupyter-possible