Can I run a python program from within emacs?

David Reitter david.reitter at
Sat Mar 22 09:47:47 CET 2008

On Mar 20, 3:09 pm, jmDesktop <needin4mat... at> wrote:
> Hi, I'm trying to learn Python.  I using Aquamac an emac
> implementation with mac os x.  I have a program.  If I go to the
> command prompt and type pythong, it works.  Can the program
> be run from within the editor or is that not how development is done?
> I ask because I was using Visual Studio with C# and, if you're
> familiar, you just hit run and it works.  On Python do I use the
> editor for editing only and then run the program from the command
> line?  Thank you.

Aquamacs, just like any variant of GNU Emacs, will show a Python
menu.  There's a "Start Interpreter" function, and one to evaluate the
buffer (C-c C-c).  It's pretty straightforward (a euphemism for

If the Python menu doesn't show, then something is going wrong. M-x
python-mode RET would switch it on.

-- -- Aquamacs: Emacs on Mac OS X -- Could we help you? Return the favor and
support the Aquamacs Project!

More information about the Python-list mailing list