These notes were developed on Windows XP.
There is a relatively complete Python distribution by Enthought: Enthought Python. Install Python 2.3.5 using the installer enthon-0.9.2.exe (85.11 MB).
This distribution contains most of what we need: iPython and the SciPy, NumPy, Numeric, ScientificPython, and Python Imaging Lab (pil) packages.
Hint for pasting into iPython: Once you copied something from another application or window, use the menu that drops down from the iPython window namestripe (on left side with the Python logo). Go to Edit -> Paste.
An alternative, not yet tested, is the Activestate distribution: ActiveState Python. The upside of this distribution is that it is at Python version 2.4. The downside of this choice is that more Python support packages need to be installed, compared to the Enthought distribution.
from pylab import *Replace this with
from matplotlib.matlab import *It appears that the newer version of matplotlib and its examples expect the package pylab to be available, but the Enthought Python distribution has this under matplotlib.matlab.
VPython provides relatively easy-to-use realtime 3D graphics. Download and install VPython-2003-10-05.exe from here.
Test installation: Find the examples subdirectory. If you're in iPython, then:
cd C:/Python23/lib/python2.3/site-packages/visual/examples/Run an example:
python lorenz.pyExit the demo by hitting the Quit button in the window's upper righthand corner.
If you are running in iPython, it appears that quiting the graphics application not only stops the application, but also kills the iPython session. Of course, you can simply double-click on the demos in that directory to run them. This doesn't interact with your iPtyhon session, which stays running. (We're looking into this issue.)
Run another:
python gas.py
You can change iPython's default text editor (NotePad) to your favorite editor, or one that is at least more functional, by following these instructions.
One particularly functional and free editor is Programmer's NotePad. Take a look at these instructions to see how to install and configure it to work with iPython.