Set ipython as default interpreter in emacs

I happen to experiment with Emacs for Python coding. I'd tried to change the default interpreter with Anaconda's ipython by the following ways in .emacs:

(setq python-python-command "~/anaconda2/bin/ipython")

or

(setq python-shell-interpreter "ipython")

but neither works.

Besides, when I switch to ipython directly (in Emacs shell or invoke it in C-c C-c) the prompt is messed up like this (the situation is the same in the Emacs shell in general):

^[[J^[[?7h^[[?12l^

How can I repair this phenomenon?

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like