Skip to main content

readline integration for IPython 5.4+ and 6.0+

Project description

rlipython

Up until version 4.2, command-line IPython had a readline frontend, which was replaced by prompt_toolkit in IPython 5. rlipython brings that classic readline functionality to IPython 5.4+ and 6.0+.

See https://github.com/ipython/ipython/issues/10364 for information.

Try it out

You can try out rlipython like this:

ipython --TerminalIPythonApp.interactive_shell_class=rlipython.TerminalInteractiveShell

Do I have to do that every time?

No. To have rlipython enabled automatically, do this:

import rlipython; rlipython.install()

This will enable rlipython for the default IPython profile, if you run it using plain python, or the active profile if you run it from ipython.

After running rlipyton.install(), you can go back to starting IPython just by using ipython without the extra configuration flag.

Removal

import rlipython; rlipython.uninstall()

Python 2 or Python 3

rlipython will work in both Python 2 and Python 3. However, as of May 15th, 2017, IPython 6.0 is the only released version of IPython which supports a configurable interactive_shell_class, but IPython 6.0 only works in Python 3. So if you want to use rlipython in Python 2, you will have to install the IPython 5.x branch from git, or wait for IPython 5.4 release.

License

This code has was extracted from IPython 5.x-dev, so it is under IPython’s LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rlipython-0.1.1-py2.py3-none-any.whl (15.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rlipython-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rlipython-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 172c7b75ccbd87a12700d1db318faa2e374460db606e03b1b978365df5c12936
MD5 69afcc2a818822765eaa98442b9d2eb5
BLAKE2b-256 c6149a640af9d798919e1ca845e8787c70a3701ef166e3fde2841e6cd561398e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page