Can I execute ipython scripts?

后端 未结 1 1883
小鲜肉
小鲜肉 2021-01-02 10:04

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

相关标签:
1条回答
  • 2021-01-02 10:42

    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
    
    0 讨论(0)
提交回复
热议问题