##// END OF EJS Templates
Backport PR #9976: Let IPython.lib.guisupport detect terminal-integrated event loops...
Backport PR #9976: Let IPython.lib.guisupport detect terminal-integrated event loops Closes gh-9974 This is a bit more invasive than most backported changes, but it fixes a regression in IPython 5. My thinking: - The `guisupport` APIs that worked before should continue working until/unless we deprecate them. - There should be a common way to check if an event loop is already running in both the terminal and an IPython kernel. - It should be possible to check for any event loop, not just Qt and Wx (which `guisupport` has checks for). My plan is to make a public attribute `shell.active_eventloop`, which is either None or a string naming the event loop which IPython will run when waiting for input. E.g. `qt` or `gtk3`. (Todo: should we also expose the event loop object in cases where there is one? Not sure if anything useful can be done with it). This PR adds that attribute for terminal IPython; if we agree on it I'll make a separate PR for ipykernel. The functions in guisupport then become a convenient shortcut for checking this, and we can decide whether to deprecate them in favour or something more uniform, or add similar convenience functions for other common event loops. Signed-off-by: Thomas Kluyver <thomas@kluyver.me.uk>
Min RK -
r23138:fb70b991
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 contain information on how to install, use contribute to the project.

Officially, IPython requires Python version 2.7, or 3.3 and above. IPython 1.x is the last IPython version to support Python 2.6 and 3.2.

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.

Developement and Instant runnimg

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 developement 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