Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8110385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:44:11+00:00 2026-06-06T01:44:11+00:00

In ipython, if I press ‘esc’ followed by ‘enter’ (and possibly other characters?), readline

  • 0

In ipython, if I press ‘esc’ followed by ‘enter’ (and possibly other characters?), readline breaks. I can no longer search through command history using the ‘up’ key, and some commands (e.g., control-K) fail.

Is there a way to reset readline within an ipython session? What is going on when I press these keys?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:44:13+00:00Added an answer on June 6, 2026 at 1:44 am

    The poster’s suggested answer doesn’t seem to work for me in iPython 0.12+. I can run:

    get_ipython().init_readline()
    

    but that doesn’t seem to help.

    However I noticed that I sometimes see similar problems in my iPython sessions. It appears that I had inadvertently switched from the default Emacs readline editing mode to vi-mode(vim-mode). According to the the readline docs to switch between them you are supposed to be able to use the M-C-j key combination but that only seems to allow me to switch to vi-mode. To switch back to Emacs mode one can use C-e but that didn’t appear to work for me – I had to instead do M-C-e – on my Mac (where ESC is used as the ‘Meta’ key) it is: ESC+CTRL+e

    The contents of my ~/.inputrc is as follows:

    set meta-flag on
    set input-meta on
    set convert-meta off
    set output-meta on
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the standard Python interactive shell, I can press Ctrl + D to close
I run ipython 0.12.1 on Ubuntu 12.04. You can run it in browser using
The ipython python shell has a wonderful feature, whereby you can type: foo?? and
I've just found IPython and I can report that I'm in deep love. And
I installed IPython to my Mac by MacPorts. I can run it by $
Can i somehow instance ipython (or even better, ipython-qtconsole) and step trough its's (IPython's)
Using IPython .10-2, I can do the following from a python command line program:
Inside ipython you can use a magic command: %run -d myapp.py This will run
I have a few IPython scripts which have redundant functionality. I would like to
I love iPython and am learning RoR along with some libraries like Mechanize and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.