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

Asked by James Jong

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:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

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

Revision history for this message
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.