| 1 |
.. image:: https://codecov.io/github/ipython/ipython/coverage.svg?branch=main |
| 2 |
:target: https://codecov.io/github/ipython/ipython?branch=main |
| 3 |
|
| 4 |
.. image:: https://img.shields.io/pypi/v/IPython.svg |
| 5 |
:target: https://pypi.python.org/pypi/ipython |
| 6 |
|
| 7 |
.. image:: https://github.com/ipython/ipython/actions/workflows/test.yml/badge.svg |
| 8 |
:target: https://github.com/ipython/ipython/actions/workflows/test.yml |
| 9 |
|
| 10 |
.. image:: https://www.codetriage.com/ipython/ipython/badges/users.svg |
| 11 |
:target: https://www.codetriage.com/ipython/ipython/ |
| 12 |
|
| 13 |
.. image:: https://raster.shields.io/badge/Follows-SPEC--0000-brightgreen.png |
| 14 |
:target: https://scientific-python.org/specs/spec-0000/ |
| 15 |
|
| 16 |
.. image:: https://tidelift.com/badges/package/pypi/ipython?style=flat |
| 17 |
:target: https://tidelift.com/subscription/pkg/pypi-ipython |
| 18 |
|
| 19 |
|
| 20 |
=========================================== |
| 21 |
IPython: Productive Interactive Computing |
| 22 |
=========================================== |
| 23 |
|
| 24 |
Overview |
| 25 |
======== |
| 26 |
|
| 27 |
Welcome to IPython. Our full documentation is available on `ipython.readthedocs.io |
| 28 |
<https://ipython.readthedocs.io/en/stable/>`_ and contains information on how to install, use, and |
| 29 |
contribute to the project. |
| 30 |
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. |
| 31 |
|
| 32 |
**Python Support** |
| 33 |
|
| 34 |
Starting after IPython 8.16, we progressively transition to `Spec-0000 <https://scientific-python.org/specs/spec-0000/>`_. |
| 35 |
|
| 36 |
IPython requires Python 3.11 or newer. |
| 37 |
|
| 38 |
|
| 39 |
The Notebook, Qt console and a number of other pieces are now parts of *Jupyter*. |
| 40 |
See the `Jupyter installation docs <https://jupyter.readthedocs.io/en/latest/install.html>`__ |
| 41 |
if you want to use these. |
| 42 |
|
| 43 |
Main features of IPython |
| 44 |
======================== |
| 45 |
Comprehensive object introspection. |
| 46 |
|
| 47 |
Input history, persistent across sessions. |
| 48 |
|
| 49 |
Caching of output results during a session with automatically generated references. |
| 50 |
|
| 51 |
Extensible tab completion, with support by default for completion of python variables and keywords, filenames and function keywords. |
| 52 |
|
| 53 |
Extensible system of ‘magic’ commands for controlling the environment and performing many tasks related to IPython or the operating system. |
| 54 |
|
| 55 |
A rich configuration system with easy switching between different setups (simpler than changing $PYTHONSTARTUP environment variables every time). |
| 56 |
|
| 57 |
Session logging and reloading. |
| 58 |
|
| 59 |
Extensible syntax processing for special purpose situations. |
| 60 |
|
| 61 |
Access to the system shell with user-extensible alias system. |
| 62 |
|
| 63 |
Easily embeddable in other Python programs and GUIs. |
| 64 |
|
| 65 |
Integrated access to the pdb debugger and the Python profiler. |
| 66 |
|
| 67 |
|
| 68 |
Development and Instant running |
| 69 |
=============================== |
| 70 |
|
| 71 |
You can find the latest version of the development documentation on `readthedocs |
| 72 |
<https://ipython.readthedocs.io/en/latest/>`_. |
| 73 |
|
| 74 |
You can run IPython from this directory without even installing it system-wide |
| 75 |
by typing at the terminal:: |
| 76 |
|
| 77 |
$ python -m IPython |
| 78 |
|
| 79 |
Or see the `development installation docs |
| 80 |
<https://ipython.readthedocs.io/en/latest/install/install.html#installing-the-development-version>`_ |
| 81 |
for the latest revision on read the docs. |
| 82 |
|
| 83 |
Documentation and installation instructions for older version of IPython can be |
| 84 |
found on the `IPython website <https://ipython.org/documentation.html>`_ |
| 85 |
|
| 86 |
|
| 87 |
Alternatives to IPython |
| 88 |
======================= |
| 89 |
|
| 90 |
IPython may not be to your taste; if that's the case there might be similar |
| 91 |
project that you might want to use: |
| 92 |
|
| 93 |
- The classic Python REPL. |
| 94 |
- `bpython <https://bpython-interpreter.org/>`_ |
| 95 |
- `mypython <https://www.asmeurer.com/mypython/>`_ |
| 96 |
- `ptpython and ptipython <https://pypi.org/project/ptpython/>`_ |
| 97 |
- `Xonsh <https://xon.sh/>`_ |
| 98 |
|
| 99 |
Ignoring commits with git blame.ignoreRevsFile |
| 100 |
============================================== |
| 101 |
|
| 102 |
As of git 2.23, it is possible to make formatting changes without breaking |
| 103 |
``git blame``. See the `git documentation |
| 104 |
<https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile>`_ |
| 105 |
for more details. |
| 106 |
|
| 107 |
To use this feature you must: |
| 108 |
|
| 109 |
- Install git >= 2.23 |
| 110 |
- Configure your local git repo by running: |
| 111 |
- POSIX: ``tools\configure-git-blame-ignore-revs.sh`` |
| 112 |
- Windows: ``tools\configure-git-blame-ignore-revs.bat`` |