在没有jupyter的情况下在python3中运行vpython吗? [英] Run vpython in python3 without jupyter possible?

查看:345
本文介绍了在没有jupyter的情况下在python3中运行vpython吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Python2.7中,我所有的可视脚本都运行良好.当我使用Python3.5时,出现错误消息:

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'

当我在Google上搜索错误消息时,人们说您应该使用jupyter笔记本.但是可以不用jupyter来运行我的旧脚本吗?

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?

推荐答案

您应按如下所示安装ipython和Jupyter Notebook

you should install ipython and Jupyter Notebook, as following

sudo apt-get install ipython ipython-notebook
pip install jupyter

然后您可以在终端中使用jupyter notebook来启动您的笔记本,在这里您可以在浏览器中创建一个新的vpython笔记本. 创建vpython

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

,然后您可以编写您的vpython脚本并查看您创建的对象,如下所示. 绘制一个球体

and then you can write your vpython script and see the objects you created as following. draw a sphere

您还可以参考其他博客来安装jupyter笔记本等.但请确保已安装vpython.

also you can refer to other blogs to install your jupyter notebook and so on. But make sure that you have installed vpython.

这篇关于在没有jupyter的情况下在python3中运行vpython吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆