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
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article