Python in XCode

In preparation for some extensive traveling I’ll be doing in the next six months or so, I picked up a used MacBook Air on Ebay for not very much. It arrived in great shape and with 4GB of RAM and 128GB of storage. I think that’s the same as my larger laptop. Still, the urge to keep things simple has struck. For one thing, there isn’t much of a point in putting a chunk of the graphical software I use on here: I just can’t see trying to work in SketchUp on this screen. Perhaps a light duty drawing application, which I have yet to decide upon, but not much more.

The first applications to get loaded on the machine were those directly in support of the book: Scrivener, Devonthink, and Papers. (Yeah, I’ll put Pages and Keynote on here at some point, but I am in no great rush.) The second set of software was in support of my next research project on narrative: MacPorts, Python, NumPy, SciPy, NLTK, NetworkX (and, one day, GenSim).

But how to interact with Python? I’ve been using BBedit, which because I bought it on the Mac App Store is incredibly convenient. But in order to run MacPorts, you have to install XCode anyway, and why not try to work in a big boy IDE? Let’s see how complicated it is:

* There’s a discussion on writing [Python in Xcode 4][] on StackOverflow.
* And there’s also a post by Vandad Nahavandipoor on [“Building and Running Python Scripts with Xcode 4.”][van]

[Python in Xcode 4]:

Leave a Reply