Sending code to an ipython shell opened from within M-x ansi-term

Asked by James Jong on 2012-11-18

Say I open a terminal emulator in Emacs with M-x ansi-term. This opens a buffer in Emacs with the shell of my choice. Say I then run ipython from this shell.

Can I send code to this ipython session from another buffer in Emacs?

Question information

English Edit question
python-mode.el Edit question
No assignee Edit question
Last query:
Last reply:
Andreas Roehler (a-roehler) said : #1

This should work. If not, please file a bug-report.

Andreas Roehler (a-roehler) said : #2

M-x customize-variable RET py-shell-name RET ansi-term

M-x ansi-term RET ipython RET

C-c C-c from Python-buffer than executes in IPython shell

Caveat: a shebang precedes default py-shell-name

Can you help with this problem?

Provide an answer of your own, or ask James Jong for more information if necessary.

To post a message you must log in.