Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57644 > unrolled thread

Python on a MacBook Pro (not my machine)

Started byJohn Ladasky <john_ladasky@sbcglobal.net>
First post2013-10-26 12:07 -0700
Last post2013-11-07 11:11 +1100
Articles 13 — 9 participants

Back to article view | Back to comp.lang.python


Contents

  Python on a MacBook Pro (not my machine) John Ladasky <john_ladasky@sbcglobal.net> - 2013-10-26 12:07 -0700
    Re: Python on a MacBook Pro (not my machine) Shao Hong <shaohong86@gmail.com> - 2013-10-27 03:50 +0800
    Re: Python on a MacBook Pro (not my machine) Cameron Simpson <cs@zip.com.au> - 2013-10-28 14:56 +1100
    Re: Python on a MacBook Pro (not my machine) Jim Gibson <jimsgibson@gmail.com> - 2013-10-28 10:43 -0700
    Re: Python on a MacBook Pro (not my machine) rusi <rustompmody@gmail.com> - 2013-10-28 10:58 -0700
    Re: Python on a MacBook Pro (not my machine) Rick Dooling <rpdooling@gmail.com> - 2013-10-28 11:41 -0700
    Re: Python on a MacBook Pro (not my machine) rusi <rustompmody@gmail.com> - 2013-11-02 02:35 -0700
      Re: Python on a MacBook Pro (not my machine) "nf7" <arya@live.ca> - 2013-11-02 09:53 -0700
        Re: Python on a MacBook Pro (not my machine) paul.nospam@rudin.co.uk - 2013-11-02 16:56 +0000
          Re: Python on a MacBook Pro (not my machine) rusi <rustompmody@gmail.com> - 2013-11-02 10:27 -0700
    Re: Python on a MacBook Pro (not my machine) John Ladasky <john_ladasky@sbcglobal.net> - 2013-11-06 09:51 -0800
      Re: Python on a MacBook Pro (not my machine) Cameron Simpson <cs@zip.com.au> - 2013-11-07 08:34 +1100
      Re: Python on a MacBook Pro (not my machine) Jake Angulo <jake.angulo@gmail.com> - 2013-11-07 11:11 +1100

#57644 — Python on a MacBook Pro (not my machine)

FromJohn Ladasky <john_ladasky@sbcglobal.net>
Date2013-10-26 12:07 -0700
SubjectPython on a MacBook Pro (not my machine)
Message-ID<0799708c-59d5-41c2-9fcc-24b7ca87386e@googlegroups.com>
Hi folks,

My side job as a Python tutor continues to grow.  In two weeks, I will start working with a high-school student who owns a MacBook Pro.  

I have had students with Linux systems (my preference) and Windows systems before, but not Macs.  On my first visit, I set up each student's computer with Python 3.x, and SciTE for editing.  I would like to do something similar for my Mac student, and I want to make sure that it goes smoothly.

My first question is whether Mac OS X ships with Python 2.x, and whether I need to be aware of any compatibility issues when I install 3.x.  (It's 2013, and my students are new to programming.  I refuse to hitch them to Python 2.)

Second: it doesn't look like I will be able to obtain SciTE for this student.  SciTE is free for Windows and Linux.  Apparently, it's $42 for Mac OSX?  If I recall, SciTE is open-source, so I suppose that I could compile the source myself.  But since it is not my computer, and I'm being paid for my time, and I haven't done much with Macs (to say nothing of building from source code), I don't think that this is appropriate.

I know, we can use IDLE.  I continue to find IDLE clumsy.  Also, there are potential issues with event handling which arise when you use IDLE.  I am working with an adult professional who is developing a Telnet application, which refuses to cooperate with IDLE/Tk.  I had similar issues myself with wxPython applications I was writing.  While these issues may not affect a beginning student, these experiences have informed my choices.

So, what other free and lightweight editing options do I have for a Mac?  I have found a few (fairly old) discussions on comp.lang.python which suggest Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/).  Opinions on these and other choices are appreciated.

Thanks!

[toc] | [next] | [standalone]


#57655

FromShao Hong <shaohong86@gmail.com>
Date2013-10-27 03:50 +0800
Message-ID<mailman.1603.1382817175.18130.python-list@python.org>
In reply to#57644

[Multipart message — attachments visible in raw view] — view raw

Hi John,

In my college, we are using Python 3.x to teach and personally I am using a
Mac and it works well so far. But back to development work, I use 2.7x
because of libraries I using.

As for ide, we are using IDLE, we understand it is clumsy but it is the
most basic and since it comes with it, so why not make use of it. But my
personal choice will be Sublime and pyCharm or even vim.




Shao Hong
shaohong86@gmail.com

"Respect needs to be earned, but honour is an attitude of the heart. Not
everyone will earn your respect, but everyone deserves to be shown honour."
- Anonymous


On Sun, Oct 27, 2013 at 3:07 AM, John Ladasky <john_ladasky@sbcglobal.net>wrote:

> Hi folks,
>
> My side job as a Python tutor continues to grow.  In two weeks, I will
> start working with a high-school student who owns a MacBook Pro.
>
> I have had students with Linux systems (my preference) and Windows systems
> before, but not Macs.  On my first visit, I set up each student's computer
> with Python 3.x, and SciTE for editing.  I would like to do something
> similar for my Mac student, and I want to make sure that it goes smoothly.
>
> My first question is whether Mac OS X ships with Python 2.x, and whether I
> need to be aware of any compatibility issues when I install 3.x.  (It's
> 2013, and my students are new to programming.  I refuse to hitch them to
> Python 2.)
>
> Second: it doesn't look like I will be able to obtain SciTE for this
> student.  SciTE is free for Windows and Linux.  Apparently, it's $42 for
> Mac OSX?  If I recall, SciTE is open-source, so I suppose that I could
> compile the source myself.  But since it is not my computer, and I'm being
> paid for my time, and I haven't done much with Macs (to say nothing of
> building from source code), I don't think that this is appropriate.
>
> I know, we can use IDLE.  I continue to find IDLE clumsy.  Also, there are
> potential issues with event handling which arise when you use IDLE.  I am
> working with an adult professional who is developing a Telnet application,
> which refuses to cooperate with IDLE/Tk.  I had similar issues myself with
> wxPython applications I was writing.  While these issues may not affect a
> beginning student, these experiences have informed my choices.
>
> So, what other free and lightweight editing options do I have for a Mac?
>  I have found a few (fairly old) discussions on comp.lang.python which
> suggest Eric (http://eric-ide.python-projects.org/) and Editra (
> http://editra.org/).  Opinions on these and other choices are appreciated.
>
> Thanks!
> --
> https://mail.python.org/mailman/listinfo/python-list
>

[toc] | [prev] | [next] | [standalone]


#57784

FromCameron Simpson <cs@zip.com.au>
Date2013-10-28 14:56 +1100
Message-ID<mailman.1676.1382933911.18130.python-list@python.org>
In reply to#57644
On 26Oct2013 12:07, John Ladasky <john_ladasky@sbcglobal.net> wrote:
> My side job as a Python tutor continues to grow.  In two weeks, I will start working with a high-school student who owns a MacBook Pro.  
> 
> I have had students with Linux systems (my preference) and Windows systems before, but not Macs.  On my first visit, I set up each student's computer with Python 3.x, and SciTE for editing.  I would like to do something similar for my Mac student, and I want to make sure that it goes smoothly.
> 
> My first question is whether Mac OS X ships with Python 2.x, and whether I need to be aware of any compatibility issues when I install 3.x.  (It's 2013, and my students are new to programming.  I refuse to hitch them to Python 2.)

MacOSX ships with Python 2.x. My Mountain Lion macbook here has
2.7.2 as /usr/bin/python.

I install MacPorts on my Macs (alternatives include Fink and HomeBrew,
and I belive you can install them side by side; Fink uses /sw,
MacPorts /opt/local and I haven't tried HomeBrew).

I have /opt/local/bin in my $PATH ahead of /usr/bin, so it finds the MacPorts
"python" (2.7.5) and "python3.2" (3.2.5) and "python3.3" (3.3.2).

> Second: it doesn't look like I will be able to obtain SciTE for this student.  SciTE is free for Windows and Linux.  Apparently, it's $42 for Mac OSX?  If I recall, SciTE is open-source, so I suppose that I could compile the source myself.  But since it is not my computer, and I'm being paid for my time, and I haven't done much with Macs (to say nothing of building from source code), I don't think that this is appropriate.

Building from source for most projects is much like Linux or any
other UNIX system.

  configure --prefix=/usr/local    # or --prefix=/usr/local/app-version, my personal preference
  make && make install && echo OK

You will need a compiler (your student needs XCode installed if
they haven't already; it is free). MacPorts needs XCode anyway, as
do the others.

> I know, we can use IDLE.  I continue to find IDLE clumsy.  Also, there are potential issues with event handling which arise when you use IDLE.  I am working with an adult professional who is developing a Telnet application, which refuses to cooperate with IDLE/Tk.  I had similar issues myself with wxPython applications I was writing.  While these issues may not affect a beginning student, these experiences have informed my choices.
> 
> So, what other free and lightweight editing options do I have for a Mac?  I have found a few (fairly old) discussions on comp.lang.python which suggest Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/).  Opinions on these and other choices are appreciated.

Personally, I use terminals (iTerm2 on a Mac in preference to
MacOSX's terminal, with a shell pane beside the editor pane) and
vim with syntax highlighting. And a web browser open on a local
copy of the 2.x or 3.x HTML docs - I keep one of each on my desktop
for easy access.

I'm not an IDE person, so I can't speak to those (even IDLE).

Cheers,
-- 
Cameron Simpson <cs@zip.com.au>

You want to tempt the wrath of the whatever from high atop the thing?
- Toby Zeigler, _The_West_Wing_ - Election Night

[toc] | [prev] | [next] | [standalone]


#57840

FromJim Gibson <jimsgibson@gmail.com>
Date2013-10-28 10:43 -0700
Message-ID<281020131043041450%jimsgibson@gmail.com>
In reply to#57644
In article <0799708c-59d5-41c2-9fcc-24b7ca87386e@googlegroups.com>,
John Ladasky <john_ladasky@sbcglobal.net> wrote:


> 
> So, what other free and lightweight editing options do I have for a Mac?  I
> have found a few (fairly old) discussions on comp.lang.python which suggest
> Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/). 
> Opinions on these and other choices are appreciated.

I use BBEdit (paid) and MacVim (free) for Mac editing. Bare Bones
Software has a free version of BBEdit called TextWrangler that a lot of
people use.

<http://www.barebones.com/products/bbedit/>
<http://www.barebones.com/products/textwrangler/>
<http://code.google.com/p/macvim/>

-- 
Jim Gibson

[toc] | [prev] | [next] | [standalone]


#57843

Fromrusi <rustompmody@gmail.com>
Date2013-10-28 10:58 -0700
Message-ID<a16aefed-bdac-432a-908b-ce6a25a418ad@googlegroups.com>
In reply to#57644
On Sunday, October 27, 2013 12:37:40 AM UTC+5:30, John Ladasky wrote:
> So, what other free and lightweight editing options do I have for a Mac?  I have found a few (fairly old) discussions on comp.lang.python which suggest Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/).  Opinions on these and other choices are appreciated.

Have you considered emacs?
Yeah it requires some setup to run for python. But then its a lifetime investment.

[About mac Ive no idea.  As far as I know some of the current hot emacs projects are being developed by people on macs -- so it surely runs but how smoothly I wont venture]

[toc] | [prev] | [next] | [standalone]


#57847

FromRick Dooling <rpdooling@gmail.com>
Date2013-10-28 11:41 -0700
Message-ID<ce3bb008-ab67-4190-8525-4344bea0f362@googlegroups.com>
In reply to#57644
Just upgraded to Mavericks, the new OS X, Python is:

Python 2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

(On Mountain Lion, it was 2.7.2. You can install Python 3 using Home Brew or even the packages from Python.org and run them on the same machine. Just change the shebang at the to of the script.

I recommend MacVim for editing

http://code.google.com/p/macvim/


On Saturday, October 26, 2013 2:07:40 PM UTC-5, John Ladasky wrote:
> Hi folks,
> 
> 
> 
> My side job as a Python tutor continues to grow.  In two weeks, I will start working with a high-school student who owns a MacBook Pro.  
> 
> 
> 
> I have had students with Linux systems (my preference) and Windows systems before, but not Macs.  On my first visit, I set up each student's computer with Python 3.x, and SciTE for editing.  I would like to do something similar for my Mac student, and I want to make sure that it goes smoothly.
> 
> 
> 
> My first question is whether Mac OS X ships with Python 2.x, and whether I need to be aware of any compatibility issues when I install 3.x.  (It's 2013, and my students are new to programming.  I refuse to hitch them to Python 2.)
> 
> 
> 
> Second: it doesn't look like I will be able to obtain SciTE for this student.  SciTE is free for Windows and Linux.  Apparently, it's $42 for Mac OSX?  If I recall, SciTE is open-source, so I suppose that I could compile the source myself.  But since it is not my computer, and I'm being paid for my time, and I haven't done much with Macs (to say nothing of building from source code), I don't think that this is appropriate.
> 
> 
> 
> I know, we can use IDLE.  I continue to find IDLE clumsy.  Also, there are potential issues with event handling which arise when you use IDLE.  I am working with an adult professional who is developing a Telnet application, which refuses to cooperate with IDLE/Tk.  I had similar issues myself with wxPython applications I was writing.  While these issues may not affect a beginning student, these experiences have informed my choices.
> 
> 
> 
> So, what other free and lightweight editing options do I have for a Mac?  I have found a few (fairly old) discussions on comp.lang.python which suggest Eric (http://eric-ide.python-projects.org/) and Editra (http://editra.org/).  Opinions on these and other choices are appreciated.
> 
> 
> 
> Thanks!

[toc] | [prev] | [next] | [standalone]


#58319

Fromrusi <rustompmody@gmail.com>
Date2013-11-02 02:35 -0700
Message-ID<14f678dc-a69c-489d-a120-ea5e0a1b2012@googlegroups.com>
In reply to#57644
On Sunday, October 27, 2013 12:37:40 AM UTC+5:30, John Ladasky wrote:
> Hi folks,

> My side job as a Python tutor continues to grow.  In two weeks, I
> will start working with a high-school student who owns a MacBook
> Pro.

> So, what other free and lightweight editing options do I have for a
> Mac?  I have found a few (fairly old) discussions on
> comp.lang.python which suggest Eric
> (http://eric-ide.python-projects.org/) and Editra
> (http://editra.org/).  Opinions on these and other choices are
> appreciated.

Just stumbled upon this
https://github.com/gabrielelanaro/emacs-for-python

Not that I would recommend it if you are not already an emacs user

[toc] | [prev] | [next] | [standalone]


#58332

From"nf7" <arya@live.ca>
Date2013-11-02 09:53 -0700
Message-ID<zKGdnWstz5ies-jPnZ2dnUVZ_sSdnZ2d@novus-tele.net>
In reply to#58319
MacVim is the best text editor, but the key bindings might get in the way at 
first. I'd still suggest it though. Also, installing a version of Python 
from the website is a good idea since Apple has a custom (and usually older) 
version of Python pre-installed that functions a little differently.


"rusi"  wrote in message 
news:14f678dc-a69c-489d-a120-ea5e0a1b2012@googlegroups.com...

On Sunday, October 27, 2013 12:37:40 AM UTC+5:30, John Ladasky wrote:
> Hi folks,

> My side job as a Python tutor continues to grow.  In two weeks, I
> will start working with a high-school student who owns a MacBook
> Pro.

> So, what other free and lightweight editing options do I have for a
> Mac?  I have found a few (fairly old) discussions on
> comp.lang.python which suggest Eric
> (http://eric-ide.python-projects.org/) and Editra
> (http://editra.org/).  Opinions on these and other choices are
> appreciated.

Just stumbled upon this
https://github.com/gabrielelanaro/emacs-for-python

Not that I would recommend it if you are not already an emacs user 


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

[toc] | [prev] | [next] | [standalone]


#58334

Frompaul.nospam@rudin.co.uk
Date2013-11-02 16:56 +0000
Message-ID<85ob62kaji.fsf@rudin.co.uk>
In reply to#58332
"nf7" <arya@live.ca> writes:

> MacVim is the best text editor...

fighting talk!

:)

[toc] | [prev] | [next] | [standalone]


#58335

Fromrusi <rustompmody@gmail.com>
Date2013-11-02 10:27 -0700
Message-ID<f5e2e174-56a0-4fc1-9227-3f7dbd5f8bc6@googlegroups.com>
In reply to#58334
On Saturday, November 2, 2013 10:26:01 PM UTC+5:30, paul....@rudin.co.uk wrote:
> "nf7" writes:

> > MacVim is the best text editor...

> fighting talk!

> :)

No I am not muscular enough to return the fighting talk...
Except to say that nf7 is top-posting

[toc] | [prev] | [next] | [standalone]


#58575

FromJohn Ladasky <john_ladasky@sbcglobal.net>
Date2013-11-06 09:51 -0800
Message-ID<86a3e5ae-a0b0-44fe-8a0c-87911d885654@googlegroups.com>
In reply to#57644
I just wanted to say thank you to everyone who posted here with recommendations for programming-friendly text editors.  I will follow up on this after I have resolved a more fundamental issue with my new student -- his Python 3.3.2 interpreter segfaults and crashes on the second command!  I'll start a new thread to deal with that problem.

[toc] | [prev] | [next] | [standalone]


#58589

FromCameron Simpson <cs@zip.com.au>
Date2013-11-07 08:34 +1100
Message-ID<mailman.2091.1383773682.18130.python-list@python.org>
In reply to#58575
On 06Nov2013 09:51, John Ladasky <john_ladasky@sbcglobal.net> wrote:
> I just wanted to say thank you to everyone who posted here with recommendations for programming-friendly text editors.  I will follow up on this after I have resolved a more fundamental issue with my new student -- his Python 3.3.2 interpreter segfaults and crashes on the second command!  I'll start a new thread to deal with that problem.

I think there was some discussion of this bug with Mavericks very
recently on the list. Possibly fixed in more recent builds.

Cheers,
-- 
Cameron Simpson <cs@zip.com.au>

Uhlmann's Razor: When stupidity is a sufficient explanation, there is no need
                 to have recourse to any other.
                        - Michael M. Uhlmann, assistant attorney general
                          for legislation in the Ford Administration

[toc] | [prev] | [next] | [standalone]


#58603

FromJake Angulo <jake.angulo@gmail.com>
Date2013-11-07 11:11 +1100
Message-ID<mailman.2102.1383783115.18130.python-list@python.org>
In reply to#58575

[Multipart message — attachments visible in raw view] — view raw

I use a Macbook air for programming - yes it has Python 2.x in it.

For code editing i use a combination of:
1) Wing IDE 101
(from their website: "is free scaled down Python IDE designed for teaching
introductory programming classes")
2) Sublime Text
3) Good old Vi

You could try those


On Thu, Nov 7, 2013 at 8:34 AM, Cameron Simpson <cs@zip.com.au> wrote:

> On 06Nov2013 09:51, John Ladasky <john_ladasky@sbcglobal.net> wrote:
> > I just wanted to say thank you to everyone who posted here with
> recommendations for programming-friendly text editors.  I will follow up on
> this after I have resolved a more fundamental issue with my new student --
> his Python 3.3.2 interpreter segfaults and crashes on the second command!
>  I'll start a new thread to deal with that problem.
>
> I think there was some discussion of this bug with Mavericks very
> recently on the list. Possibly fixed in more recent builds.
>
> Cheers,
> --
> Cameron Simpson <cs@zip.com.au>
>
> Uhlmann's Razor: When stupidity is a sufficient explanation, there is no
> need
>                  to have recourse to any other.
>                         - Michael M. Uhlmann, assistant attorney general
>                           for legislation in the Ford Administration
> --
> https://mail.python.org/mailman/listinfo/python-list
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web