11

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

Community
  • 1
  • 1
DilithiumMatrix
  • 17,795
  • 22
  • 77
  • 119
  • 1
    @Madness that's not a good dupe target since the OP (and presumably anyone with the same question) is already aware of the difference in those two. From the question: "I tried... running it using both ipython and python." – Two-Bit Alchemist Aug 15 '15 at 20:28
  • http://stackoverflow.com/questions/11782744/can-i-execute-ipython-scripts http://stackoverflow.com/questions/25045396/ipython-behavior-different-for-py-and-ipy-files-despite-script-being-pure-py – Padraic Cunningham Aug 15 '15 at 20:29

1 Answers1

26

.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.

anatoly techtonik
  • 19,847
  • 9
  • 124
  • 140
Cyphase
  • 11,502
  • 2
  • 31
  • 32