Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:13:17+00:00 2026-06-14T14:13:17+00:00

Say I open a terminal emulator in Emacs with M-x ansi-term . This opens

  • 0

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 with Python code in Emacs? If so how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:13:18+00:00Added an answer on June 14, 2026 at 2:13 pm

    I have a minor mode for this purpose (except it is not IPython-specific and I mostly use it for shell scripts): isend-mode.

    Here is how you would use it:

    1. Open an ansi-term buffer:

      M-xansi-termRET/usr/bin/ipythonRET

    2. Open the buffer with the code you want to execute, and associate it to the interpreter buffer:

      M-xisend-associateRET*ansi-term*RET

    3. Hit C-RET in the python buffer to send the current line to the interpreter in the ansi-term buffer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I open Chrome and hop into the javascript console. If I run localStorage.setItem('test',
Let's say I open a file with open() . Then I fork() my program.
Say I have a set of data in this format: ID Product account open
I'm trying to watch a process and wait for a certain pattern, say: open
Say I open a file in vim. I start on line 1 column 1
Example: say I want to open a file. If I get a FileNotFoundException ,
I'm trying to open a file in a Java program (say Program.java ) using
If a MySQL database connection is already open from a script (say PHP ),
Let's say I have the following code, file1 = open(myfile,w) #Write to file1... #Open
If you open Settings -> General -> About , it'll say Bob's iPhone at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.