An Emacs mode for editing Python code

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

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
2012-11-18
Last reply:
2012-11-19
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.