9

有没有办法执行 ipython 脚本?我不是指 python 脚本,而是使用简化的语法,因为它将被输入到 ipython shell

4

1 回答 1

13

当然,只需使用 IPython 运行它们,就像使用 Python 运行纯 Python 脚本一样:

$> 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
于 2012-08-02T18:26:52.527 回答