Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 6
    Yes, that's what I did at first, however the lack of multiline support (most important for function definitions) made me revert back to ipython 4. It should be noted though that ipython 5 works fine with M-x term. Commented Jul 12, 2016 at 21:55
  • 3
    Setting this flag is still very useful with Elpy, though—through the variable python-shell-interpreter-args. If you haven't tried Elpy, you should check it out. It allows you to write your function definitions in a separate buffer and easily pass them to the interpreter with just one command. In this case, you can make use of all of Emacs' editing commands and get an interactive session—best of both worlds. Commented Jul 12, 2016 at 23:58
  • 1
    @Literal the reason why is also written on the link: they changed from using readline to prompt_toolkit on IPython 5. prompt_toolkit is not compatible with Emacs shells, which work differently from term: as far as I know, shells run dumb terminals with the purpose of working more like a standard Emacs buffer, whereas term runs an actual full terminal emulator. It seems shells are compatible with readline but not with prompt_toolkit, which would explain the prompt showing the escape sequences. Since term runs a full terminal, it correctly interprets the escape sequences. Commented Jul 17, 2016 at 2:45
  • 1
    I didn't accept it because I would have liked to retain the other features, perhaps using another shell mode with more features. But I guess I'll have to live with it. Commented Jul 17, 2016 at 3:42
  • 1
    @CodyChan It disables IPython features relating to the UI, like completion, colors, etc. It keeps things like %magic commands, input/output history, !shell commands, ?help commands, etc. Commented May 16, 2017 at 20:06