README.rst
111 lines
| 3.8 KiB
| text/x-rst
|
RstLexer
Matthias Bussonnier
|
r21796 | .. image:: https://codecov.io/github/ipython/ipython/coverage.svg?branch=master | ||
:target: https://codecov.io/github/ipython/ipython?branch=master | ||||
Matthias Bussonnier
|
r19865 | |||
Carol Willing
|
r23534 | .. image:: https://img.shields.io/pypi/v/IPython.svg | ||
Matthias Bussonnier
|
r19865 | :target: https://pypi.python.org/pypi/ipython | ||
Carol Willing
|
r23534 | .. image:: https://img.shields.io/travis/ipython/ipython.svg | ||
Matthias Bussonnier
|
r19865 | :target: https://travis-ci.org/ipython/ipython | ||
Mradul Dubey
|
r23720 | .. image:: https://www.codetriage.com/ipython/ipython/badges/users.svg | ||
:target: https://www.codetriage.com/ipython/ipython/ | ||||
Matthias Bussonnier
|
r19865 | |||
Fernando Perez
|
r4459 | =========================================== | ||
IPython: Productive Interactive Computing | ||||
=========================================== | ||||
fperez
|
r0 | |||
Brian E Granger
|
r1250 | Overview | ||
======== | ||||
darren.dale
|
r864 | |||
Matthias Bussonnier
|
r22640 | Welcome to IPython. Our full documentation is available on `ipython.readthedocs.io | ||
Rounak Banik
|
r22799 | <https://ipython.readthedocs.io/en/stable/>`_ and contains information on how to install, use and | ||
Matthias Bussonnier
|
r22640 | contribute to the project. | ||
Brian Granger
|
r1719 | |||
Thomas Kluyver
|
r23535 | **IPython versions and Python Support** | ||
Carol Willing
|
r23534 | |||
Thomas Kluyver
|
r24261 | **IPython 7.0** requires Python version 3.4 and above. | ||
Hugo
|
r24260 | |||
Thomas Kluyver
|
r24261 | **IPython 6.x** requires Python version 3.3 and above. | ||
Carol Willing
|
r23534 | |||
Thomas Kluyver
|
r23535 | **IPython 5.x LTS** is the compatible release for Python 2.7. | ||
If you require Python 2 support, you **must** use IPython 5.x LTS. Please | ||||
update your project configurations and requirements as necessary. | ||||
Carol Willing
|
r23534 | |||
Fernando Perez
|
r2573 | |||
Thomas Kluyver
|
r21596 | The Notebook, Qt console and a number of other pieces are now parts of *Jupyter*. | ||
stonebig
|
r24303 | See the `Jupyter installation docs <https://jupyter.readthedocs.io/en/latest/install.html>`__ | ||
Thomas Kluyver
|
r21596 | if you want to use these. | ||
Fernando Perez
|
r2573 | |||
Aaron Meurer
|
r7825 | |||
Matthias Bussonnier
|
r22640 | |||
Matthias Bussonnier
|
r22826 | Development and Instant running | ||
=============================== | ||||
Matthias Bussonnier
|
r22640 | |||
You can find the latest version of the development documentation on `readthedocs | ||||
stonebig
|
r24303 | <https://ipython.readthedocs.io/en/latest/>`_. | ||
Fernando Perez
|
r2481 | |||
You can run IPython from this directory without even installing it system-wide | ||||
MinRK
|
r3345 | by typing at the terminal:: | ||
Matthias Bussonnier
|
r22823 | |||
MinRK
|
r10575 | $ python -m IPython | ||
Dražen Lučanin
|
r10139 | |||
Rounak Banik
|
r22799 | Or see the `development installation docs | ||
stonebig
|
r24303 | <https://ipython.readthedocs.io/en/latest/install/install.html#installing-the-development-version>`_ | ||
Matthias Bussonnier
|
r22823 | for the latest revision on read the docs. | ||
Matthias Bussonnier
|
r22710 | |||
Documentation and installation instructions for older version of IPython can be | ||||
Matthias Bussonnier
|
r24425 | found on the `IPython website <https://ipython.org/documentation.html>`_ | ||
Matthias Bussonnier
|
r22823 | |||
IPython requires Python version 3 or above | ||||
========================================== | ||||
Starting with version 6.0, IPython does not support Python 2.7, 3.0, 3.1, or | ||||
3.2. | ||||
For a version compatible with Python 2.7, please install the 5.x LTS Long Term | ||||
Support version. | ||||
If you are encountering this error message you are likely trying to install or | ||||
use IPython from source. You need to checkout the remote 5.x branch. If you are | ||||
Matthias Bussonnier
|
r24266 | using git the following should work:: | ||
Matthias Bussonnier
|
r22823 | |||
$ git fetch origin | ||||
Thomas Ballinger
|
r23813 | $ git checkout 5.x | ||
Matthias Bussonnier
|
r22823 | |||
If you encounter this error message with a regular install of IPython, then you | ||||
likely need to update your package manager, for example if you are using `pip` | ||||
Matthias Bussonnier
|
r24266 | check the version of pip with:: | ||
Matthias Bussonnier
|
r22823 | |||
$ pip --version | ||||
Matthias Bussonnier
|
r23540 | You will need to update pip to the version 9.0.1 or greater. If you are not using | ||
Matthias Bussonnier
|
r22823 | pip, please inquiry with the maintainers of the package for your package | ||
manager. | ||||
For more information see one of our blog posts: | ||||
Matthias Bussonnier
|
r24425 | https://blog.jupyter.org/2016/07/08/ipython-5-0-released/ | ||
Matthias Bussonnier
|
r22823 | |||
As well as the following Pull-Request for discussion: | ||||
https://github.com/ipython/ipython/pull/9900 | ||||
Matthias Bussonnier
|
r23540 | |||
This error does also occur if you are invoking ``setup.py`` directly – which you | ||||
should not – or are using ``easy_install`` If this is the case, use ``pip | ||||
Thomas Hisch
|
r23542 | install .`` (instead of ``setup.py install`` , and ``pip install -e .`` instead | ||
Matthias Bussonnier
|
r23540 | of ``setup.py develop`` If you are depending on IPython as a dependency you may | ||
also want to have a conditional dependency on IPython depending on the Python | ||||
version:: | ||||
install_req = ['ipython'] | ||||
if sys.version_info[0] < 3 and 'bdist_wheel' not in sys.argv: | ||||
install_req.remove('ipython') | ||||
install_req.append('ipython<6') | ||||
setup( | ||||
... | ||||
install_requires=install_req | ||||
) | ||||