I am using emacs with Anaconda's IPython console:

(setq python-shell-interpreter (substitute-in-file-name "$HOME/anaconda3/bin/ipython"))

IPython opens after C-c C-p, but always with four empty input lines at the beginning:

emacs and ipython

Also, when I send a command by selecting a region and C-c C-r (print('words')) in this case, again four empty lines show up and then the result:

print words

How to fix this? I don't have any IPython related configuration apart from the line that I pasted at the top.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.