README.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. .. image:: https://codecov.io/github/ipython/ipython/coverage.svg?branch=main
  2. :target: https://codecov.io/github/ipython/ipython?branch=main
  3. .. image:: https://img.shields.io/pypi/v/IPython.svg
  4. :target: https://pypi.python.org/pypi/ipython
  5. .. image:: https://github.com/ipython/ipython/actions/workflows/test.yml/badge.svg
  6. :target: https://github.com/ipython/ipython/actions/workflows/test.yml
  7. .. image:: https://www.codetriage.com/ipython/ipython/badges/users.svg
  8. :target: https://www.codetriage.com/ipython/ipython/
  9. .. image:: https://raster.shields.io/badge/Follows-SPEC--0000-brightgreen.png
  10. :target: https://scientific-python.org/specs/spec-0000/
  11. .. image:: https://tidelift.com/badges/package/pypi/ipython?style=flat
  12. :target: https://tidelift.com/subscription/pkg/pypi-ipython
  13. ===========================================
  14. IPython: Productive Interactive Computing
  15. ===========================================
  16. Overview
  17. ========
  18. Welcome to IPython. Our full documentation is available on `ipython.readthedocs.io
  19. <https://ipython.readthedocs.io/en/stable/>`_ and contains information on how to install, use, and
  20. contribute to the project.
  21. 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.
  22. **IPython versions and Python Support**
  23. Starting after IPython 8.16, we will progressively transition to `Spec-0000 <https://scientific-python.org/specs/spec-0000/>`_.
  24. Starting with IPython 7.10, IPython follows `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_
  25. **IPython 7.17+** requires Python version 3.7 and above.
  26. **IPython 7.10+** requires Python version 3.6 and above.
  27. **IPython 7.0** requires Python version 3.5 and above.
  28. **IPython 6.x** requires Python version 3.3 and above.
  29. **IPython 5.x LTS** is the compatible release for Python 2.7.
  30. If you require Python 2 support, you **must** use IPython 5.x LTS. Please
  31. update your project configurations and requirements as necessary.
  32. The Notebook, Qt console and a number of other pieces are now parts of *Jupyter*.
  33. See the `Jupyter installation docs <https://jupyter.readthedocs.io/en/latest/install.html>`__
  34. if you want to use these.
  35. Main features of IPython
  36. ========================
  37. Comprehensive object introspection.
  38. Input history, persistent across sessions.
  39. Caching of output results during a session with automatically generated references.
  40. Extensible tab completion, with support by default for completion of python variables and keywords, filenames and function keywords.
  41. Extensible system of ‘magic’ commands for controlling the environment and performing many tasks related to IPython or the operating system.
  42. A rich configuration system with easy switching between different setups (simpler than changing $PYTHONSTARTUP environment variables every time).
  43. Session logging and reloading.
  44. Extensible syntax processing for special purpose situations.
  45. Access to the system shell with user-extensible alias system.
  46. Easily embeddable in other Python programs and GUIs.
  47. Integrated access to the pdb debugger and the Python profiler.
  48. Development and Instant running
  49. ===============================
  50. You can find the latest version of the development documentation on `readthedocs
  51. <https://ipython.readthedocs.io/en/latest/>`_.
  52. You can run IPython from this directory without even installing it system-wide
  53. by typing at the terminal::
  54. $ python -m IPython
  55. Or see the `development installation docs
  56. <https://ipython.readthedocs.io/en/latest/install/install.html#installing-the-development-version>`_
  57. for the latest revision on read the docs.
  58. Documentation and installation instructions for older version of IPython can be
  59. found on the `IPython website <https://ipython.org/documentation.html>`_
  60. IPython requires Python version 3 or above
  61. ==========================================
  62. Starting with version 6.0, IPython does not support Python 2.7, 3.0, 3.1, or
  63. 3.2.
  64. For a version compatible with Python 2.7, please install the 5.x LTS Long Term
  65. Support version.
  66. If you are encountering this error message you are likely trying to install or
  67. use IPython from source. You need to checkout the remote 5.x branch. If you are
  68. using git the following should work::
  69. $ git fetch origin
  70. $ git checkout 5.x
  71. If you encounter this error message with a regular install of IPython, then you
  72. likely need to update your package manager, for example if you are using `pip`
  73. check the version of pip with::
  74. $ pip --version
  75. You will need to update pip to the version 9.0.1 or greater. If you are not using
  76. pip, please inquiry with the maintainers of the package for your package
  77. manager.
  78. For more information see one of our blog posts:
  79. https://blog.jupyter.org/release-of-ipython-5-0-8ce60b8d2e8e
  80. As well as the following Pull-Request for discussion:
  81. https://github.com/ipython/ipython/pull/9900
  82. This error does also occur if you are invoking ``setup.py`` directly – which you
  83. should not – or are using ``easy_install`` If this is the case, use ``pip
  84. install .`` instead of ``setup.py install`` , and ``pip install -e .`` instead
  85. of ``setup.py develop`` If you are depending on IPython as a dependency you may
  86. also want to have a conditional dependency on IPython depending on the Python
  87. version::
  88. install_req = ['ipython']
  89. if sys.version_info[0] < 3 and 'bdist_wheel' not in sys.argv:
  90. install_req.remove('ipython')
  91. install_req.append('ipython<6')
  92. setup(
  93. ...
  94. install_requires=install_req
  95. )
  96. Alternatives to IPython
  97. =======================
  98. IPython may not be to your taste; if that's the case there might be similar
  99. project that you might want to use:
  100. - The classic Python REPL.
  101. - `bpython <https://bpython-interpreter.org/>`_
  102. - `mypython <https://www.asmeurer.com/mypython/>`_
  103. - `ptpython and ptipython <https://pypi.org/project/ptpython/>`_
  104. - `Xonsh <https://xon.sh/>`_
  105. Ignoring commits with git blame.ignoreRevsFile
  106. ==============================================
  107. As of git 2.23, it is possible to make formatting changes without breaking
  108. ``git blame``. See the `git documentation
  109. <https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile>`_
  110. for more details.
  111. To use this feature you must:
  112. - Install git >= 2.23
  113. - Configure your local git repo by running:
  114. - POSIX: ``tools\configure-git-blame-ignore-revs.sh``
  115. - Windows: ``tools\configure-git-blame-ignore-revs.bat``