Someone mentioned this in a comment, and it (almost) worked for me:
pip install ipython[notebook]
pip
gave an error about the hash not matching. However, what ultimately worked was:
sudo port install py27-notebook
And for py3:
sudo port install py35-notebook