How do you run a Python code from a Mac? Terminal is only an interpreter?

October 12, 2011 – 4:03 pm

I just figured out about the Terminal but it’s only an interpreter. How do I run a code from TextEdit or something? From my documents directory.

Related posts:

  1. Why is the python interpreter closing? How can I fix this?
  2. Invoking the Interpreter in Python?
  3. How do I get code written in python to display in it's command line ?
  4. Cannot execute code from C:\Documents and Settings\user>?
  5. How do I Run in Script Mode When Using Python on Terminal?
  6. How Can I Instruct The Terminal To Open Python Scripts in Different Folders?
  7. How Can I Instruct The Terminal To Open Python Scripts in Different Folders?
  8. I'm having problems with my Python interpreter?
  9. How Python Interpreter knows the end of a LOOP..?(While,For,If etc..)?
  10. what program can i code with python in (like notepad can code html)?
  1. 2 Responses to “How do you run a Python code from a Mac? Terminal is only an interpreter?”

  2. Im not sure if this is what ur asking but if ur trying to load the GUI, use the command to start a program (‘start’ on windows) followed by IDLE, or Python, whatever the name of the actual file is.. make sure ur in the right directory

    By dwai on Oct 12, 2011

  3. IDLE (Python GUI) -> file -> new window -> make your program ->Run Module

    and to reopen the program just double click on the program

    By saxy d on Oct 12, 2011

Sorry, comments for this entry are closed at this time.