##// END OF EJS Templates
Do not update the unders if they are user defined...
Do not update the unders if they are user defined Closes jupyter/notebook#1628 (once there are tests). Still shift the internal reference to self._,__,___ but do not assign it in user ns. I would expect this to be a change of behavior and have the (slight) side effect that if any of the _, __, or __ are defined, then none of these are updated. We could update the logic to do the right think on leapfrog _, __ or __ if user-set, but is it worth it. If _ is in builtins, then _ will not update the history and _ will be the builtins, unless user set it explicitly in which case it takes precedence. Summary if user have set _ _ == value set by the user elif _ in builtins: _ == value in builtins._ else: _ == previous result. Note that this logic may fall down if the use set _ to a specific value, and have this save value returned while _ is also in builtin: In [1]: import gettext ; gettext.install('foo') In [2]: _ = 'Example' In [3]: _ Out[3]: 'Example' In [4]: _ Out[4]: 'Example' In [5]: _ Out[5]: <bound method NullTranslations.gettext of <...>>
Matthias Bussonnier -
r22838:138b3a4a
Show More
Name Size Modified Last Commit Author
IPython
docs
examples
scripts
setupext
tools
.gitattributes Loading ...
.gitignore Loading ...
.mailmap Loading ...
.travis.yml Loading ...
CONTRIBUTING.md Loading ...
COPYING.rst Loading ...
Dockerfile Loading ...
MANIFEST.in Loading ...
README.rst Loading ...
codecov.yml Loading ...
setup.py Loading ...
setupbase.py Loading ...
setupegg.py Loading ...
tox.ini Loading ...
https://codecov.io/github/ipython/ipython/coverage.svg?branch=master https://img.shields.io/pypi/dm/IPython.svg https://img.shields.io/pypi/v/IPython.svg https://img.shields.io/travis/ipython/ipython.svg

IPython: Productive Interactive Computing

Overview

Welcome to IPython. Our full documentation is available on ipython.readthedocs.io and contains information on how to install, use and contribute to the project.

Officially, IPython requires Python version 3.3 and above. IPython 5.x is the last IPython version to support Python 2.7.

The Notebook, Qt console and a number of other pieces are now parts of Jupyter. See the Jupyter installation docs if you want to use these.

Development and Instant running

You can find the latest version of the development documentation on readthedocs.

You can run IPython from this directory without even installing it system-wide by typing at the terminal:

$ python -m IPython

Or see the development installation docs for the latest revision on read the docs.

Documentation and installation instructions for older version of IPython can be found on the IPython website

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 using git the following should work:

$ git fetch origin $ git checkout -b origin/5.x

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 check the version of pip with

$ pip --version

You will need to update pip to the version 8.2 or greater. If you are not using pip, please inquiry with the maintainers of the package for your package manager.

For more information see one of our blog posts:

http://blog.jupyter.org/2016/07/08/ipython-5-0-released/

As well as the following Pull-Request for discussion:

https://github.com/ipython/ipython/pull/9900