My problem is Emacs with elpy, specifically with (elpy-use-ipython) in my init file. When I try to open a python file, emacs freezes.

I desactivate ipython and emacs runs well. But I wanna use ipython because it is a great tool.

My OS is Arch Linux, recently (21/07/2016), ipython upgrades from version 4.2.0 to 5.0.0. The emacs version is 24.5.1.

Now, how I can fix this issue? How I can use ipython again?

  • Can you please provide some more detail? Can you give a recipe that shows what you mean, starting with emacs -Q?
    – Drew
    Commented Jul 22, 2016 at 1:30

2 Answers 2


ipython 5.0.0 by defautl uses prompt_toolkit which is really nice in a terminal but uses special characters for colors and completion that screws emacs display. Eventually it should be fixed but for now I have this in my .emacs:

  (setq python-shell-interpreter "ipython3"
    python-shell-interpreter-args "--simple-prompt --pprint")

and run M-x run-python to lauch the ipython interpreter wihtout prompt_toolkit.


An alternative solution to Lompik's is to simply downgrade to ipython4. This might be better anyway, because --simple-prompt argument that lompik suggests removes many of the great features of ipython. For example, now you rely on elpy to do completions, and you can't have multi-line input

  • That's right. By the way, is this problem not fixed yet?
    – cactus
    Commented Dec 18, 2016 at 2:48
  • @cactus I can't seem to find one. If you do, let me know. Right now i'm struggling to stop elpy from spawning an unnecessary python process at startup. Save me.
    – Dodgie
    Commented Dec 18, 2016 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.