Difference between revisions of "Python"

From Chemical Engineering @ UP wiki
Jump to: navigation, search
m (EPD link)
(Installation)
Line 6: Line 6:
 
=== Installation ===
 
=== Installation ===
  
* Windows: [ftp://ftp.ee.up.ac.za/pub/windows/maths/Python(x,y)-2.7.2.2.exe Python(x,y)] supplies a full scientific programming environment.
+
* Windows: The MPR module uses [http://ftp.ee.up.ac.za/pub/windows/maths/Python(x,y)-2.7.9.0.exe Python(x,y)]. This is a distribution which supplies a full scientific programming environment. If that local link does not work, look for a Python(x,y) executable installer [http://ftp.ee.up.ac.za/pub/windows/maths/ here] or download directly from the [https://code.google.com/p/pythonxy/wiki/Downloads Python(x,y) website]. Note that the [http://continuum.io/downloads Anaconda] distribution is also gaining popularity.
 
* Linux: Install python along with Matplotlib and Numpy/Scipy
 
* Linux: Install python along with Matplotlib and Numpy/Scipy
* Mac: Use the [http://www.enthought.com/products/epd.php Enthought Python Distribution]
+
* Mac: Use [http://continuum.io/downloads Anaconda].
  
 
=== Scientific computing ===
 
=== Scientific computing ===

Revision as of 10:19, 20 April 2015

Python

Python is a popular scripting language. It is on the top 10 of the TIOBE index, and is often used in scientific programming outside of the major commercial platforms like Matlab or Mathematica.

Installation

  • Windows: The MPR module uses Python(x,y). This is a distribution which supplies a full scientific programming environment. If that local link does not work, look for a Python(x,y) executable installer here or download directly from the Python(x,y) website. Note that the Anaconda distribution is also gaining popularity.
  • Linux: Install python along with Matplotlib and Numpy/Scipy
  • Mac: Use Anaconda.

Scientific computing

Numeric calculations are done using the NumPy or SciPy modules. Here is a handy starting point for someone used to Matlab/Octave to get into NumpPy/Scipy.

Plotting is done using the matplotlib library. The website contains documentation as well as a large gallery of examples.

The SciPy website also has a lot of examples in their Cookbook. Topical ones include