IPython explained

IPython
Logo Size:220px
Screenshot Size:220px
Screenshot Alt:Screenshot of IPython 6.x on Mac OS, showing the computation of a fourier transform using numpy.
Author:Fernando Perez[1]
Developer:Brian E. Granger, Min Ragan-Kelley, Paul Ivanov, Thomas Kluyver, Matthias Bussonnier
Programming Language:Python, JavaScript, CSS, HTML
Operating System:Cross-platform
Genre:Shell
License:BSD

IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history. IPython provides the following features:

IPython is a NumFOCUS fiscally sponsored project.[2]

Parallel computing

IPython is based on an architecture that provides parallel and distributed computing. IPython enables parallel applications to be developed, executed, debugged and monitored interactively, hence the I (Interactive) in IPython.[3] This architecture abstracts out parallelism, enabling IPython to support many different styles of parallelism[4] including:

With the release of IPython 4.0, the parallel computing capabilities were made optional and released under the ipyparallel python package. And most of the capabilities of ipyparallel are now covered by more mature libraries like Dask.

IPython frequently draws from SciPy stack[5] libraries like NumPy and SciPy, often installed alongside one of many Scientific Python distributions. IPython provides integration with some libraries of the SciPy stack, notably matplotlib, producing inline graphs when used with the Jupyter notebook. Python libraries can implement IPython specific hooks to customize rich object display. SymPy for example implements rendering of mathematical expressions as rendered LaTeX when used within IPython context, and Pandas dataframe use an HTML representation.[6]

Other features

IPython allows non-blocking interaction with Tkinter, PyGTK, PyQt/PySide and wxPython (the standard Python shell only allows interaction with Tkinter). IPython can interactively manage parallel computing clusters using asynchronous status callbacks and/or MPI. IPython can also be used as a system shell replacement.[7] Its default behavior is largely similar to Unix shells, but it allows customization and the flexibility of executing code in a live Python environment.

End of Python 2 support

IPython 5.x (Long Time Support) series is the last version of IPython to support Python 2. The IPython project pledged to not support Python 2 beyond 2020[8] by being one of the first projects to join the Python 3 Statement, the 6.x series is only compatible with Python 3 and above. It is still possible though to run an IPython kernel and a Jupyter Notebook server on different Python versions allowing users to still access Python 2 on newer version of Jupyter.

Project Jupyter

See main article: Project Jupyter.

In 2014, IPython creator Fernando Pérez announced a spin-off project from IPython called Project Jupyter.[9] IPython continued to exist as a Python shell and kernel for Jupyter, but the notebook interface and other language-agnostic parts of IPython were moved under the Jupyter name.[10] [11] Jupyter is language agnostic and its name is a reference to core programming languages supported by Jupyter, which are Julia, Python, and R.[12]

Jupyter Notebook (formerly IPython Notebook) is a web-based interactive computational environment for creating, executing, and visualizing Jupyter notebooks. It is similar to the notebook interface of other programs such as Maple, Mathematica, and SageMath, a computational interface style that originated with Mathematica in the 1980s.[13] It supports execution environments (aka kernels) in dozens of languages. By default Jupyter Notebook ships with the IPython kernel, but there are over 100 Jupyter kernels as of May 2018.

In the media

IPython has been mentioned in the popular computing press and other popular media,[14] [13] and it has a presence at scientific conferences.[15] For scientific and engineering work, it is often presented as a companion tool to matplotlib.[16]

Grants and awards

Beginning 1 January 2013, the Alfred P. Sloan Foundation announced that it would support IPython development for two years.[17]

On 23 March 2013, Fernando Perez was awarded the Free Software Foundation Advancement of Free Software award for IPython.

In August 2013, Microsoft made a donation of $100,000 to sponsor IPython's continued development.[18]

In January 2014, it won the Jolt Productivity Award[19] from Dr. Dobb's in the category of coding tools. In July 2015, the project won a funding of $6 million from Gordon and Betty Moore Foundation, Alfred P. Sloan Foundation and Leona M. and Harry B. Helmsley Charitable Trust.[20]

In May 2018, it was awarded the 2017 ACM Software System Award.[21] It is the largest team to have won the award.[22]

See also

External links

Notes and References

  1. Web site: The IPython notebook: a historical retrospective. 8 January 2012. Fernando Perez Blog.
  2. Web site: NumFOCUS Sponsored Projects. NumFOCUS. 2021-10-25.
  3. Helen. Shen. Interactive notebooks: Sharing the code. Nature. 2014. 515. 7525. 151–152. 10.1038/515151a. 25373681. 2014Natur.515..151S. free.
  4. Web site: Using IPython for Parallel computing - IPython docs.
  5. Web site: SciPy Stack.
  6. Web site: Printing — SymPy 1.1 documentation. docs.sympy.org. 2018-04-11.
  7. Book: McKinney, Wes. http://shop.oreilly.com/product/0636920023784.do. Python for Data Analysis. Chapter 3. 2012. 978-1-449-31979-3.
  8. News: Release of IPython 5.0 – Jupyter Blog. 2016-07-08. Jupyter Blog. 2018-04-11.
  9. Web site: Project Jupyter // Speaker Deck.
  10. Web site: The Notebook, Qt console and a number of other pieces are now parts of Jupyter. . 17 October 2021.
  11. Web site: The Big Split™. 28 August 2017.
  12. Web site: Jupyter Logo · jupyter/Design Wiki. .
  13. News: The Scientific Paper Is Obsolete. Somers. James. The Atlantic. 2018-04-10. en-US.
  14. Web site: Introducing IPython. 12 September 2005. Koziol. Conrad. NewsForge. 14 June 2012. 7 June 2012. https://web.archive.org/web/20120607065802/http://archive09.linux.com/feature/47635. dead.
  15. Web site: IPython Presentations.
  16. Pérez . Fernando . Granger . Brian E. . IPython: A System for Interactive Scientific Computing . Computing in Science & Engineering . 9 . 21–29 . 3 . 2007 . dead . https://web.archive.org/web/20100602042637/http://fperez.org/papers/ipython07_pe-gr_cise.pdf . 2 June 2010 . 30 July 2015. 10.1109/MCSE.2007.53 . 2007CSE.....9c..21P . 16637923 .
  17. Web site: Announcement in scipy mailing list. 12 December 2012. 5 March 2016. https://web.archive.org/web/20160305020306/https://mail.scipy.org/pipermail/ipython-dev/2012-December/010799.html. dead.
  18. Web site: IPython Announcement.
  19. Web site: Jolt Productivity Award write-up in Dr. Dobb's.
  20. News: $6M for UC Berkeley and Cal Poly to expand and enhance open-source software for scientific computing and data science. 13 August 2015.
  21. Web site: Recent Software System Award News.
  22. News: Jupyter receives the ACM Software System Award.