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