[IPython-user] Getting require('matplotlib') and -pylab to play together

Ludwig Schwardt ludwig.schwardt@gmail....
Tue Aug 14 01:48:03 CDT 2007


We are compiling and installing numpy, scipy and matplotlib using Easy
Install in "multi-version" mode. This requires the following lines
before these packages can be imported:

from pkg_resources import require

I added these lines to my ipythonrc, which works fine. Problems start
when I start ipython with the -pylab flag, however, as this tries to
import matplotlib before reading the config file.

Currently I hacked these lines into the top-level ipython script. Is
there a better option?


Ludwig Schwardt
Stellenbosch University / KAT Project
South Africa

More information about the IPython-user mailing list