The commands I used were: elpy-shell-send-region-or-buffer and elpy-shell-switch-to-shell Under previous Emacs version 24.4.90, the same package and command worked fine. Thanks a lot. Da Zhang On 3/31/2015 10:40 PM, Eli Zaretskii wrote: >> Date: Tue, 31 Mar 2015 17:24:44 -0400 >> From: Da Zhang >> CC: 20237@debbugs.gnu.org >> >> My set up of python path in .emacs is: >> (setq python-shell-interpreter "C:\\Python27\\Scripts\\ipython") >> (setq python-shell-interpreter-args "-i --profile=dev --colors=Linux") > And how (with which command) did you start the interpreter?