How to load current buffer into Python interpreter in Emacs?

I am trying to use emacs to edit and run python programs (emacs23 and python 2.6 on Ubuntu 10.10).

  • I read the file in Emacs ( Cx -Cf )
  • I start the interpreter (Menu Python - Start interpreter, I have not found a keyboard shortcut for it yet)
  • Emacs splits frame in two windows
  • I put the cursor in a python file ( Cx o )

Now I want to run Python code in the top window of the Python interpreter in the bottom window. Other places suggested:

  • Cc Cc but it does nothing
  • Cc ! but emacs says this command is undefined

I installed ropemacs ( sudo apt-get install python-ropemacs ) but didn't change anything.

+7
source share
1 answer

You can click "Cc Cz" (switch to interpreter) to view the results and the buffers or regions that you rated.

+9
source

All Articles