I'm using elpy for my python coding. I wanted to try ipython because of the nice built in profilers. So what I've done is to install ipython within my virtualenv. It works correctly. I then added the following line to my init.el


However after restarting emacs I get the error that command iypthon is not found. Is it possible to set ipython on a virtualenv basis? Or how can I fix the issue. I'm running linux debian 9.3 stretch

  • I don't use elpy, but looking at the source it says elpy-use-ipython is deprecated.
    – jpkotta
    Feb 2, 2018 at 16:40

2 Answers 2


Reading the docstring for the deprecated elpy-use-ipython, it points to https://elpy.readthedocs.io/en/latest/ide.html#interpreter-setup that recommends the following setup for ipython:

(setq python-shell-interpreter "ipython"
      python-shell-interpreter-args "-i --simple-prompt")

If it still fails, you could try using full path to your ipython executable.



(setq python-shell-interpreter "jupyter"
      python-shell-interpreter-args "console --simple-prompt"
      python-shell-prompt-detect-failure-warning nil)
(add-to-list 'python-shell-completion-native-disabled-interpreters
  • 4
    What does "recomme" mean? Please clarify and explain what those Elisp chunks are supposed to do.
    – Stefan
    Jul 15, 2019 at 16:24

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.