Run vpython in python3 without jupyter possible?

落爺英雄遲暮 提交于 2019-12-24 08:29:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!