IPython

Last updated

Original author(s) Fernando Perez [1]
Developer(s) Brian E. Granger, Min Ragan-Kelley, Paul Ivanov, Thomas Kluyver, Matthias Bussonnier
Initial release2001;23 years ago (2001) [1]
Stable release
8.21.0 [2]   OOjs UI icon edit-ltr-progressive.svg / 31 January 2024;2 months ago (31 January 2024)
Repository
Written in Python, JavaScript, CSS, HTML
Operating system Cross-platform
Type Shell
License BSD
Website ipython.org   OOjs UI icon edit-ltr-progressive.svg

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:

Contents

IPython is a NumFOCUS fiscally sponsored project. [3]

Parallel computing

Architectural View of IPython's parallel machinery IpythonArchitecture.png
Architectural View of IPython's parallel machinery

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. [4] This architecture abstracts out parallelism, enabling IPython to support many different styles of parallelism [5] 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 [6] libraries like NumPy and SciPy, often installed alongside one of many Scientific Python distributions. [6] 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. [7]

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. [8] 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 [9] 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

Old IPython Notebook interface IPython-notebook.png
Old IPython Notebook interface

In 2014, IPython creator Fernando Pérez announced a spin-off project from IPython called Project Jupyter. [10] 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. [11] [12] Jupyter is language agnostic and its name is a reference to core programming languages supported by Jupyter, which are Julia, Python, and R. [13]

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. [14] 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, [15] [14] and it has a presence at scientific conferences. [16] For scientific and engineering work, it is often presented as a companion tool to matplotlib. [17]

Grants and awards

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

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. [19]

In January 2014, it won the Jolt Productivity Award [20] 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. [21]

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

See also

Related Research Articles

<span class="mw-page-title-main">SciPy</span> Open-source Python library for scientific computing

SciPy is a free and open-source Python library used for scientific computing and technical computing.

<span class="mw-page-title-main">NumPy</span> Python library for numerical programming

NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. The predecessor of NumPy, Numeric, was originally created by Jim Hugunin with contributions from several other developers. In 2005, Travis Oliphant created NumPy by incorporating features of the competing Numarray into Numeric, with extensive modifications. NumPy is open-source software and has many contributors. NumPy is a NumFOCUS fiscally sponsored project.

<span class="mw-page-title-main">PyQt</span> Python GUI library

PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. PyQt is free software developed by the British firm Riverbank Computing. It is available under similar terms to Qt versions older than 4.5; this means a variety of licenses including GNU General Public License (GPL) and commercial license, but not the GNU Lesser General Public License (LGPL). PyQt supports Microsoft Windows as well as various kinds of UNIX, including Linux and MacOS.

<span class="mw-page-title-main">Matplotlib</span> Library for creating static, animated, and interactive visualizations in Python.

Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK. There is also a procedural "pylab" interface based on a state machine, designed to closely resemble that of MATLAB, though its use is discouraged. SciPy makes use of Matplotlib.

<span class="mw-page-title-main">ParaView</span> Scientific visualization software

ParaView is an open-source multiple-platform application for interactive, scientific visualization. It has a client–server architecture to facilitate remote visualization of datasets, and generates level of detail (LOD) models to maintain interactive frame rates for large datasets. It is an application built on top of the Visualization Toolkit (VTK) libraries. ParaView is an application designed for data parallelism on shared-memory or distributed-memory multicomputers and clusters. It can also be run as a single-computer application.

Enthought, Inc. is a software company based in Austin, Texas, United States that develops scientific and analytic computing solutions using primarily the Python programming language. It is best known for the early development and maintenance of the SciPy library of mathematics, science, and engineering algorithms and for its Python for scientific computing distribution Enthought Canopy.

<span class="mw-page-title-main">Cython</span> Programming language

Cython is a superset of the programming language Python, which allows developers to write Python code that yields performance comparable to that of C.


The Wing Python IDE is a family of integrated development environments (IDEs) from Wingware created specifically for the Python programming language, with support for editing, testing, debugging, inspecting/browsing, and error-checking Python code.

<span class="mw-page-title-main">PyCharm</span> Python IDE

PyCharm is an integrated development environment (IDE) used for programming in Python. It provides code analysis, a graphical debugger, an integrated unit tester, integration with version control systems, and supports web development with Django. PyCharm is developed by the Czech company JetBrains.

<span class="mw-page-title-main">Spyder (software)</span> IDE for scientific programming in Python

Spyder is an open-source cross-platform integrated development environment (IDE) for scientific programming in the Python language. Spyder integrates with a number of prominent packages in the scientific Python stack, including NumPy, SciPy, Matplotlib, pandas, IPython, SymPy and Cython, as well as other open-source software. It is released under the MIT license.

pandas (software) Python library for data analysis

Pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series. It is free software released under the three-clause BSD license. The name is derived from the term "panel data", an econometrics term for data sets that include observations over multiple time periods for the same individuals, as well as a play on the phrase "Python data analysis". Wes McKinney started building what would become Pandas at AQR Capital while he was a researcher there from 2007 to 2010.

<span class="mw-page-title-main">Plotly</span> Canadian computing company

Plotly is a technical computing company headquartered in Montreal, Quebec, that develops online data analytics and visualization tools. Plotly provides online graphing, analytics, and statistics tools for individuals and collaboration, as well as scientific graphing libraries for Python, R, MATLAB, Perl, Julia, Arduino, JavaScript and REST.

John D. Hunter was an American neurobiologist and the original author of Matplotlib.

<span class="mw-page-title-main">Fernando Pérez (software developer)</span> Colombian-American physicist and software developer

Fernando Pérez is a Colombian-American physicist, software developer, and free software advocate. He is best known as the creator of the IPython programming environment, for which he received the 2012 Free Software Award from the Free Software Foundation and for his work on Project Jupyter for which he received the 2017 ACM Software System Award. He is a fellow of the Python Software Foundation, and a founding member of the NumFOCUS organization.

<span class="mw-page-title-main">Notebook interface</span> Programming tool blending code and documents

A notebook interface or computational notebook is a virtual notebook environment used for literate programming, a method of writing computer programs. Some notebooks are WYSIWYG environments including executable calculations embedded in formatted documents; others separate calculations and text into separate sections. Notebooks share some goals and features with spreadsheets and word processors but go beyond their limited data models.

<span class="mw-page-title-main">Project Jupyter</span> Open source data science software

Project Jupyter is a project to develop open-source software, open standards, and services for interactive computing across multiple programming languages.

CuPy is an open source library for GPU-accelerated computing with Python programming language, providing support for multi-dimensional arrays, sparse matrices, and a variety of numerical algorithms implemented on top of them. CuPy shares the same API set as NumPy and SciPy, allowing it to be a drop-in replacement to run NumPy/SciPy code on GPU. CuPy supports Nvidia CUDA GPU platform, and AMD ROCm GPU platform starting in v9.0.

References

  1. 1 2 "The IPython notebook: a historical retrospective". Fernando Perez Blog. 8 January 2012.
  2. "ipython 8.21.0".
  3. "NumFOCUS Sponsored Projects". NumFOCUS. Retrieved 25 October 2021.
  4. Helen, Shen (2014). "Interactive notebooks: Sharing the code". Nature. 515 (7525): 151–152. Bibcode:2014Natur.515..151S. doi: 10.1038/515151a . PMID   25373681.
  5. "Using IPython for Parallel computing - IPython docs".
  6. 1 2 "SciPy Stack".
  7. "Printing — SymPy 1.1 documentation". docs.sympy.org. Retrieved 11 April 2018.
  8. McKinney, Wes (2012). "Chapter 3". Python for Data Analysis. ISBN   978-1-449-31979-3.
  9. "Release of IPython 5.0 – Jupyter Blog". Jupyter Blog. 8 July 2016. Retrieved 11 April 2018.
  10. "Project Jupyter // Speaker Deck".
  11. "The Notebook, Qt console and a number of other pieces are now parts of Jupyter". GitHub . 17 October 2021.
  12. "The Big Split™". 28 August 2017.
  13. "Jupyter Logo · jupyter/Design Wiki". GitHub .
  14. 1 2 Somers, James. "The Scientific Paper Is Obsolete". The Atlantic. Retrieved 10 April 2018.
  15. Koziol, Conrad (12 September 2005). "Introducing IPython". NewsForge. Archived from the original on 7 June 2012. Retrieved 14 June 2012.
  16. "IPython Presentations".
  17. Pérez, Fernando; Granger, Brian E. (2007). "IPython: A System for Interactive Scientific Computing" (PDF). Computing in Science & Engineering. 9 (3): 21–29. Bibcode:2007CSE.....9c..21P. doi:10.1109/MCSE.2007.53. S2CID   16637923. Archived from the original (PDF) on 2 June 2010. Retrieved 30 July 2015.
  18. "Announcement in scipy mailing list". Archived from the original on 5 March 2016. Retrieved 12 December 2012.
  19. "IPython Announcement".
  20. "Jolt Productivity Award write-up in Dr. Dobb's".
  21. "$6M for UC Berkeley and Cal Poly to expand and enhance open-source software for scientific computing and data science" . Retrieved 13 August 2015.
  22. "Recent Software System Award News".
  23. "Jupyter receives the ACM Software System Award".