Steps to Get Ready for the Tutorial

  1. Install the necessary Python binaries and libraries
  2. Test the installation with the given examples
  3. List of required software

 

This tutorial will use the NumPy, SciPy, and Matplotlib libraries. All software used in this tutorial is open-source and freely available for download.

 

Instructions for Installing the Necessary Python Libraries

 

Windows installation instructions

The following installation instructions were tested in Windows XP.

  1. Download Python(x,y) 2.6.5.1
  2. Run the downloaded binary.
  3. If prompted, install the "recommended" version of Python(x,y)

 

Mac installation instructions

  1. Download Enthought Python Distribution 6.1-1
  2. Open the downloaded installation image.
  3. Run the "EPD.mpkg" installer in the downloaded image (Note: The EPD package is free for all acacdemic users)

 

Linux installation instructions

All the software needed can be installed from the command line in Linux.

Installation in Ubuntu can be done with the Synaptic GUI, or ...

Ubuntu 10.04 command line instructions

  1. sudo apt-get install build-essential
  2. sudo apt-get install python
  3. sudo apt-get install python-numpy python-scipy
  4. sudo apt-get install python-matplotlib
  5. sudo apt-get install ipython

 

Fedora 12 command line instructions

  1. sudo yum install python
  2. sudo yum install numpy scipy
  3. sudo yum install matplotlib
  4. sudo yum install ipython

 

Testing the Installed Software

To test that your python software is installed correctly, enter the sample code below into iPython.

 

Note: All code snippets taken from IPython have the formatting "In [number]: <Code user enters>". The "In [number]:" is a prompt provided by IPython.

Starting IPython

In Windows

  1. Double-click on the "Python (x,y)" link that should be on the Desktop.
  2. Click on either button next to the "IPython(x,y)" dropdown list under the "Interactive consoles:" section.
  3. Enter the sample code below and see that the resulting figure matches

Screenshot of Python(x,y) Home Window

 

In MacOS

  1. In "Applications", open the EPD-6.1 folder
  2. Run the "PyLab (IPython)" application
  3. Enter the sample code below and view the figure

 

In Linux

  1. Open a terminal
  2. Execute
    ipython -pylab
  3. Enter the sample code below and view the figure.

 

Sample Code

Enter the following in iPython:


In [1]: import numpy
In [2]: import scipy
In [3]: import matplotlib
In [4]: import pylab
In [5]: a=[1,2,3]
In [6]: b=[1,2,3]
In [7]: pylab.figure()
In [8]: pylab.plot(a,b)

 

This code sample should produce a window that looks like this:

Example Output 1

 

Required Software

The software used in this tutorial is:

  1. Python 2.6
  2. Numpy 1.4
  3. SciPy 0.7
  4. Matplotlib 0.99...
  5. IPython

 

Python(x,y) information

Python(x,y) is a free scientific and engineering development software for numerical computations, data analysis and data visualization based on Python programming language, Qt graphical user interfaces, Eclipse integrated development environment and Spyder interactive scientific devleopment environment.

Python(x,y) is designed and tested to work with Windows XP, Vista, and Windows 7. It includes are large number of libraries and binaries including integrated development environments (IDEs), C and Fortran compilers, Python libraries for scientific computation and visualization, and documentation about the software included.

 

Enthought, Inc.

The Enthought Python Distribution (EPD) provides a comprehensive, cross-platform environment for scientific computing with the Python programming language.

The EPD includes installers for Windows, Mac, Solaris, and Linux. Enthought, Inc. sells support and training for these packages.

LATEST ANNOUNCEMENTS

Annual Meeting Slides Available
The presentations from the annual meeting are posted on Arkansas Science & Technology Authority's site.

pyArkansas Registration Open
The 5th annual gathering of enthusiasts and users of the Python programming language, will be held on October 27, 2012 at University of Central Arkansas in Conway.

UAPB Offers CS Master's Degree
Starting this fall, the Computer Science Unit at the University of Arkansas at Pine Bluff will offer a Master’s of Science degree in Computer Science & Technology (CS&T;)--the first of its kind for the institution.