Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a .py file and a .ipy file?

I've tried saving (and running) a script in both ways, and running it using both ipython and python, but I don't see any difference. Are these filename extensions redundant?


Edit: the difference between python and ipython

like image 600
DilithiumMatrix Avatar asked Aug 15 '15 20:08

DilithiumMatrix


1 Answers

.ipy indicates that it's an IPython script. The only difference between IPython scripts and normal Python scripts is that IPython scripts can use IPython magics, e.g. %timeit, and run system commands as !echo Hi.

like image 99
Cyphase Avatar answered Sep 19 '22 13:09

Cyphase