Monday, November 19, 2012

MacPorts update broke your ipython/matplotlib installation?

I recently updated my MacPorts installation just to find out that it broke my ipython installation, even though my python environment is configured independently from macports.

The error message was more or less like this: I run the command

ipython --pylab

and matplotlib does not work, complaining about the missing the library file libpng14.14.dylib with a message "image not found".

If you installed python, ipython and matplotlib following my tutorial (i.e. independently from the macports python installation), you just need to reinstall matplotlib with pip:

pip uninstall matplotlib
pip install matplotlib

This will reconfigure matplotlib with the updated dependencies.

Friday, November 9, 2012

Matplotlib 1.2 and ipython 0.13.1 released

Just found out that there new releases of ipython and matplotlib!

Some highlights of the matplotlib update are:

  • python 3x support
  • streamplot method (I have a friend who plots lots of streamlines from his MHD simulations and will find this interesting)
If your scientific python environment was installed following my tutorial, you can easily update these packages via pip using the command:

pip install --upgrade matplotlib

pip install --upgrade ipython