Can i execute ipython scripts?

Is there a way to execute ipython scripts? I do not mean python scripts, but with a simplified syntax, as it will be injected into ipython shell

+6
source share
1 answer

Of course, just run them with IPython, as you have with Python for a simple 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 
+12
source

Source: https://habr.com/ru/post/921978/


All Articles