3

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

(elpy-use-ipython) 

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

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

2 Answers 2

5

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.

0

recomme

(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 "jupyter") 
1
  • 4
    What does "recomme" mean? Please clarify and explain what those Elisp chunks are supposed to do. Commented Jul 15, 2019 at 16:24

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.