Posts Tagged ‘matplotlib’

Scientific Programming with Python

March 14, 2013

Hi folks,

As a brief note to those looking for a quick fix, if you have Mac OS X 10.8, mountain lion, and are looking for a distribution of python 2.7 that has numpy, scipy and matplotlib all kitted up and ready to go, I would heartily endorse the Enthought Python Distribution .   I’ve found that this does precisely what I need – which is to allow me to have an attempt at finite difference methods for PDE.  In particular I am keen to implement solution of the geodesic equation on a Riemannian manifold using these techniques.

Note that this works with Eclipse Juno 4.2 and Pydev.  Naturally the interpreter needs to be configured.  Python can be found at /Library/Frameworks/Python.framework/Versions/7.3/bin/python2.7 .  Select the default libraries and everything should work.

Alternatively, one can open a terminal and simply key in “Idle”, and import numpy, import scipy, import matplotlib – all of these will work without error.

Finally, note that this will edit .bash_profile in user_home  (.bash_profile allows one to customise the path in mac os x 10.8).


# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
export PATH

Although, I have been thinking that C++ might be a better tool to use in terms of approaching tensor calculus.  I’m actually quite keen to start looking into the genetic algorithms and neural network code I discovered.  These snippets can be found at this site , “ai junkie“.