Re: [Tutor] Using Python with a Mac
Not sure if this is what you're asking, but you can invoke the Python interpreter from the command line (Terminal) Open a new terminal, and at the $ prompt just type python.. $ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. print now in the python interpreter now in the python interpreter To run a python program from the command line (assuming its in the same directory), just type: $ python myprogram.py On Sun, Feb 21, 2010 at 10:06 AM, Marco Rompré marcodrom...@gmail.comwrote: Hi everyone, I would like to know how to use python with a mac. For now, I go to spotlight, open terminal then type IDLE and a window pops up but its like the window that opens when you run your programs already saved and I'm not able to open another window to write a script from scratch. Could someone help me please please I have the latest Macbook Pro so 2,88ghz 15 inches screen. Thank you in advance Marchoes ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Using Python with a Mac
Even though it's written for kids Snake Wrangling for Kids is a good resource to get you started with writing Python code. Don't be put off by the title or the target audience; seriously. This book will have you writing and executing Python scripts by page 8. You can get it from: http://code.google.com/p/swfk/downloads/list Make sure to pull down one of the Mac versions. The latest revision uses Python 3.x syntax. Good luck! Zack On Feb 21, 2010, at 10:06 AM, Marco Rompré wrote: Could someone help me please please ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Using Python with a Mac
mac have python 2.5 and 2.6 installed by default. If you use Vi then you are up for it. If you want IDE then pydev plugin with eclipse can be tried. I had heard good things about it. Also you can try bpython(python fancy interpretor), install it via macports. ~l0nwlf On Sun, Feb 21, 2010 at 10:36 PM, Marco Rompré marcodrom...@gmail.comwrote: Hi everyone, I would like to know how to use python with a mac. For now, I go to spotlight, open terminal then type IDLE and a window pops up but its like the window that opens when you run your programs already saved and I'm not able to open another window to write a script from scratch. Could someone help me please please I have the latest Macbook Pro so 2,88ghz 15 inches screen. Thank you in advance Marchoes ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Using Python with a Mac
On Sun, Feb 21, 2010 at 10:36 PM, Marco Rompré marcodrom...@gmail.comwrote: Hi everyone, I would like to know how to use python with a mac. For now, I go to spotlight, open terminal then type IDLE and a window pops up but its like the window that opens when you run your programs already saved and I'm not able to open another window to write a script from scratch. By default IDLE seems to open up a python interpreter window (regardless of platform). If you hit Apple-N to open a 'New' window, or select the equivalent command from the menu, it will open a new window for entering a script; from there you can perform various actions (save, run, debug, etc.) If you click on 'Python' to the left of 'File' and select 'Preferences' and then pick the 'General' tab you can opt to have IDLE open up with an editor window instead of an interpreter window the next time you start. HTH, Monte ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor