r/IPython • • Feb 28 '15

What exactly is IPython?

Hello,

I am relatively new to learning Python, and am confused by exactly what IPython is. Is it an implementation of Python like CPython, Jython, PyPy et al.? Or is it more like an IDE like Eric or Spyder? Or is it an IDE that is integrated with its own implementation of Python? Would the Notebook be part of that IDE? Is there an ELI5 explanation for how to conceptualise IPython?

Thanks!!

15 Upvotes

20 comments sorted by

View all comments

2

u/isforinsects Mar 01 '15

Well, consider ipython and ipython notebook a bit separate first. Ipython is an interactive python shell with extra features beyond the standard python interactive shell. Colors, history, and getting the docstring of a function by typing function? are examples of ipython's improvements.

Ipython isn't a production environment for running standard non-interactive python (generally, there are exceptions to this rule).

1

u/avamk Mar 01 '15

Ipython isn't a production environment for running standard non-interactive python

Since I am a super beginner learning Python, what does this mean for mean? Would I still be able to follow, say, a textbook's examples, create Python *.py scripts, and run them in IPython? And can one use IPython for Python application development? Or is IPython used in a different way?

2

u/hharison Mar 01 '15

Since I am a super beginner learning Python, what does this mean for mean? Would I still be able to follow, say, a textbook's examples, create Python *.py scripts, and run them in IPython?

Yes, if you run ipython script.py it will have pretty much the same result as python script.py. There may be an advantage of doing so but I don't know exactly what it is. The use case is more of doing things interactively than running scripts.

And can one use IPython for Python application development? Or is IPython used in a different way?

Yes, in the sense that while you are developing an application you are probably testing things out in a terminal. IPython makes that side of things a little easier. But it doesn't fundamentally change the workflow of developing an application.

1

u/avamk Mar 01 '15

That makes sense, thank you!