我可以执行ipython脚本吗? [英] Can I execute ipython scripts?
本文介绍了我可以执行ipython脚本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法执行ipython脚本?我不是指python脚本,而是使用简化的语法,因为它将被输入到ipython shell中
Is there a way to execute ipython scripts? I don't mean python scripts, but with simplified syntax as it would be entered into the ipython shell
推荐答案
当然,只需运行他们使用IPython和Python一起使用纯Python脚本:
sure, just run them with IPython as you with Python for a plain Python script:
$> echo '%time print "hello, world"' > script.ipy
$> ipython script.ipy
hello, world
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.00 s
这篇关于我可以执行ipython脚本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文