| 1 |
.. _introduction: |
| 2 |
|
| 3 |
===================== |
| 4 |
IPython Documentation |
| 5 |
===================== |
| 6 |
|
| 7 |
.. only:: html |
| 8 |
|
| 9 |
:Release: |release| |
| 10 |
:Date: |today| |
| 11 |
|
| 12 |
Welcome to the official IPython documentation. |
| 13 |
|
| 14 |
IPython provides a rich toolkit to help you make the most of using Python |
| 15 |
interactively. Its main components are: |
| 16 |
|
| 17 |
* A powerful interactive Python shell. |
| 18 |
|
| 19 |
|
| 20 |
.. image:: ./_images/ipython-6-screenshot.png |
| 21 |
:alt: Screenshot of IPython 6.0 |
| 22 |
:align: center |
| 23 |
|
| 24 |
|
| 25 |
* A `Jupyter <https://jupyter.org/>`_ kernel to work with Python code in Jupyter |
| 26 |
notebooks and other interactive frontends. |
| 27 |
|
| 28 |
The enhanced interactive Python shells and kernel have the following main |
| 29 |
features: |
| 30 |
|
| 31 |
* Comprehensive object introspection. |
| 32 |
|
| 33 |
* Input history, persistent across sessions. |
| 34 |
|
| 35 |
* Caching of output results during a session with automatically generated |
| 36 |
references. |
| 37 |
|
| 38 |
* Extensible tab completion, with support by default for completion of python |
| 39 |
variables and keywords, filenames and function keywords. |
| 40 |
|
| 41 |
* Extensible system of 'magic' commands for controlling the environment and |
| 42 |
performing many tasks related to IPython or the operating system. |
| 43 |
|
| 44 |
* A rich configuration system with easy switching between different setups |
| 45 |
(simpler than changing ``$PYTHONSTARTUP`` environment variables every time). |
| 46 |
|
| 47 |
* Session logging and reloading. |
| 48 |
|
| 49 |
* Extensible syntax processing for special purpose situations. |
| 50 |
|
| 51 |
* Access to the system shell with user-extensible alias system. |
| 52 |
|
| 53 |
* Easily embeddable in other Python programs and GUIs. |
| 54 |
|
| 55 |
* Integrated access to the pdb debugger and the Python profiler. |
| 56 |
|
| 57 |
|
| 58 |
The Command line interface inherits the above functionality and adds |
| 59 |
|
| 60 |
* real multi-line editing thanks to `prompt_toolkit <https://python-prompt-toolkit.readthedocs.io/en/stable/>`_. |
| 61 |
|
| 62 |
* syntax highlighting as you type. |
| 63 |
|
| 64 |
* integration with command line editor for a better workflow. |
| 65 |
|
| 66 |
The kernel also has its share of features. When used with a compatible frontend, |
| 67 |
it allows: |
| 68 |
|
| 69 |
* the object to create a rich display of Html, Images, Latex, Sound and |
| 70 |
Video. |
| 71 |
|
| 72 |
* interactive widgets with the use of the `ipywidgets <https://ipywidgets.readthedocs.io/en/stable/>`_ package. |
| 73 |
|
| 74 |
|
| 75 |
This documentation will walk you through most of the features of the IPython |
| 76 |
command line and kernel, as well as describe the internal mechanisms in order |
| 77 |
to improve your Python workflow. |
| 78 |
|
| 79 |
You can find the table of content for this documentation in the left |
| 80 |
sidebar, allowing you to come back to previous sections or skip ahead, if needed. |
| 81 |
|
| 82 |
|
| 83 |
The latest development version is always available from IPython's `GitHub |
| 84 |
repository <https://github.com/ipython/ipython>`_. |
| 85 |
|
| 86 |
|
| 87 |
.. toctree:: |
| 88 |
:maxdepth: 1 |
| 89 |
:hidden: |
| 90 |
|
| 91 |
self |
| 92 |
overview |
| 93 |
whatsnew/index |
| 94 |
install/index |
| 95 |
interactive/index |
| 96 |
config/index |
| 97 |
development/index |
| 98 |
coredev/index |
| 99 |
api/index |
| 100 |
sphinxext |
| 101 |
about/index |
| 102 |
|
| 103 |
.. seealso:: |
| 104 |
|
| 105 |
`Jupyter documentation <https://jupyter.readthedocs.io/en/latest/>`__ |
| 106 |
The Jupyter documentation provides information about the Notebook code and other Jupyter sub-projects. |
| 107 |
`ipyparallel documentation <https://ipyparallel.readthedocs.io/en/latest/>`__ |
| 108 |
Formerly ``IPython.parallel``. |
| 109 |
|
| 110 |
|
| 111 |
.. only:: html |
| 112 |
|
| 113 |
* :ref:`genindex` |
| 114 |
* :ref:`modindex` |
| 115 |
* :ref:`search` |
| 116 |
|