README.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .. image:: https://codecov.io/github/ipython/ipython/coverage.svg?branch=master
  2. :target: https://codecov.io/github/ipython/ipython?branch=master
  3. .. image:: https://img.shields.io/pypi/v/IPython.svg
  4. :target: https://pypi.python.org/pypi/ipython
  5. .. image:: https://img.shields.io/travis/ipython/ipython.svg
  6. :target: https://travis-ci.org/ipython/ipython
  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-NEP29-brightgreen.png
  10. :target: https://numpy.org/neps/nep-0029-deprecation_policy.html
  11. ===========================================
  12. IPython: Productive Interactive Computing
  13. ===========================================
  14. Overview
  15. ========
  16. Welcome to IPython. Our full documentation is available on `ipython.readthedocs.io
  17. <https://ipython.readthedocs.io/en/stable/>`_ and contains information on how to install, use, and
  18. contribute to the project.
  19. **IPython versions and Python Support**
  20. Starting with IPython 7.10, IPython follows `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_
  21. **IPython 7.17+** requires Python version 3.7 and above.
  22. **IPython 7.10+** requires Python version 3.6 and above.
  23. **IPython 7.0** requires Python version 3.5 and above.
  24. **IPython 6.x** requires Python version 3.3 and above.
  25. **IPython 5.x LTS** is the compatible release for Python 2.7.
  26. If you require Python 2 support, you **must** use IPython 5.x LTS. Please
  27. update your project configurations and requirements as necessary.
  28. The Notebook, Qt console and a number of other pieces are now parts of *Jupyter*.
  29. See the `Jupyter installation docs <https://jupyter.readthedocs.io/en/latest/install.html>`__
  30. if you want to use these.
  31. Development and Instant running
  32. ===============================
  33. You can find the latest version of the development documentation on `readthedocs
  34. <https://ipython.readthedocs.io/en/latest/>`_.
  35. You can run IPython from this directory without even installing it system-wide
  36. by typing at the terminal::
  37. $ python -m IPython
  38. Or see the `development installation docs
  39. <https://ipython.readthedocs.io/en/latest/install/install.html#installing-the-development-version>`_
  40. for the latest revision on read the docs.
  41. Documentation and installation instructions for older version of IPython can be
  42. found on the `IPython website <https://ipython.org/documentation.html>`_
  43. IPython requires Python version 3 or above
  44. ==========================================
  45. Starting with version 6.0, IPython does not support Python 2.7, 3.0, 3.1, or
  46. 3.2.
  47. For a version compatible with Python 2.7, please install the 5.x LTS Long Term
  48. Support version.
  49. If you are encountering this error message you are likely trying to install or
  50. use IPython from source. You need to checkout the remote 5.x branch. If you are
  51. using git the following should work::
  52. $ git fetch origin
  53. $ git checkout 5.x
  54. If you encounter this error message with a regular install of IPython, then you
  55. likely need to update your package manager, for example if you are using `pip`
  56. check the version of pip with::
  57. $ pip --version
  58. You will need to update pip to the version 9.0.1 or greater. If you are not using
  59. pip, please inquiry with the maintainers of the package for your package
  60. manager.
  61. For more information see one of our blog posts:
  62. https://blog.jupyter.org/release-of-ipython-5-0-8ce60b8d2e8e
  63. As well as the following Pull-Request for discussion:
  64. https://github.com/ipython/ipython/pull/9900
  65. This error does also occur if you are invoking ``setup.py`` directly – which you
  66. should not – or are using ``easy_install`` If this is the case, use ``pip
  67. install .`` instead of ``setup.py install`` , and ``pip install -e .`` instead
  68. of ``setup.py develop`` If you are depending on IPython as a dependency you may
  69. also want to have a conditional dependency on IPython depending on the Python
  70. version::
  71. install_req = ['ipython']
  72. if sys.version_info[0] < 3 and 'bdist_wheel' not in sys.argv:
  73. install_req.remove('ipython')
  74. install_req.append('ipython<6')
  75. setup(
  76. ...
  77. install_requires=install_req
  78. )
  79. Alternatives to IPython
  80. =======================
  81. IPython may not be to your taste; if that's the case there might be similar
  82. project that you might want to use:
  83. - the classic Python REPL.
  84. - `bpython <https://bpython-interpreter.org/>`_
  85. - `mypython <https://www.asmeurer.com/mypython/>`_
  86. - `ptpython and ptipython <https://pypi.org/project/ptpython/>`
  87. - `xonsh <https://xon.sh/>`
  88. Ignoring commits with git blame.ignoreRevsFile
  89. ==============================================
  90. As of git 2.23, it is possible to make formatting changes without breaking
  91. ``git blame``. See the `git documentation
  92. <https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile>`_
  93. for more details.
  94. To use this feature you must:
  95. - Install git >= 2.23
  96. - Configure your local git repo by running:
  97. - POSIX: ``tools\configure-git-blame-ignore-revs.sh``
  98. - Windows: ``tools\configure-git-blame-ignore-revs.bat``