Moving to Python 3

The time has come. All the libraries I use on a regular basis are available for Python 3.4. I just spent a frighteningly short amount of time with MacPorts installing everything I need and then making sure that Python 3.4 and iPython 3.4 are the defaults. Here’s all that I had to type:

% sudo port selfupdate
% sudo port install python34
% sudo port install py34-numpy
% sudo port install py34-scipy
% sudo port install py34-nltk
% sudo port install py34-pandas
% sudo port install ipython34
% sudo port select --set python python3
% sudo port select --set ipython ipython3

And then, because I’m working on something for The Programming Historian and it’s just easier to do everything in an iPython notebook:

% ipython notebook

Later, all I will need to do is:

% ipython nbconvert --to markdown myFile.ipynb


While Mac OS X’s Calendar and the iCloud service handle the back-end, I increasingly only use Fantastical for interacting with times, dates, appointments, and schedules. Not only is its natural language system very good — “Meet with this person next Friday from 2 to 2:30 in my office” — but it just looks good:

Screen Shot 2015-07-24 at 3.27.44 PM

Residential Alternatives

The more I live in Louisiana, the more I would like either to live somewhere else or at least be able to get to other places when I have the time. (Sadly, the more I live here, the less I am able to afford anything.) Until that moment where I live elsewhere, I like to daydream about either living in a small house, maybe even a tiny house as they are now known, or at least camping in a similarly outfitted trailer.

Here are some ideas:

Airstream An Updated Airstream

Updated 1962 Bambi Airstream A 1962 Airstream Bambi

Travel Trailer Home A Lived-In Travel Trailer

Complete MacPorts Installation Cheat Sheet

The following set of commands assume that you begin with a Mac OS X that does not have any of the necessities already installed. You can, thus, skip anything you have already done, e.g., if you have already installed Xcode, skip to Step 2.

  1. Install the Xcode development and command line tool environment.
  2. Install the MacPorts basic installation.
  3. Install Python 2.7 for math, science, and NLP.
  4. Install iPython and select it like you did for Python:

    port select –set ipython ipython27

  5. Install iPython notebook. (And here’s a list of dependencies in case the notebook installation doesn’t complete by itself.)