Reinteract on Windows

So I thought I’d try booting up one of my systems into Windows today and see how much work it would be to get Reinteract running. It turned out to be completely an exercise in clicking through installers (9 of them). If you are already a Windows Python user, the amount of things you need to install will be less.

  1. Follow the instructions in the PyGTK FAQ to install Python, GTK+, and PyGTK.
  2. Download and install NumPy and SciPy from
  3. Download and install the latest version of matplotlib.
  4. Download and install TortoiseCVS. (Will likely require a reboot since it’s a shell extension)
  5. Right click on your desktop, and select “CVS Checkout…”
  6. Enter “” into CVSROOT (without the quotes), and “master” into the Module (without the quotes). (Fetch List.. won’t work). Click OK
  7. Rename the resulting folder from “master” to “reinteract”
  8. Go into reinteract/bin and double click on”uninst”
  9. You can play around, or use File/Open to open the examples from reinteract/examples

Reinteract on Windows

It seems to work pretty well. Caveats I know about:

  • replay and the “play” example won’t work. (An easy project for somebody who knows how to get Python to play sounds on Windows)
  • There’s a bug in the cairo backend for matplotlib-0.90.1 which will cause non-square images to not work. (The images in the imshow example are square…) It’s pretty easy to fix up: just edit C:\Python25\Lib\site-packages\matplotlib\backends\ and in draw_image(), change “rows, cols, row*4” to “cols, rows, cols*4”.
  • Saving over an existing file doesn’t work (should be an easy fix)
  • The GTK+ and PyGTK versions in the installers referenced above are a bit out of date. So they aren’t exactly what I’ve been testing with, though they seem to work fine. (There’s one bug triggered when deleting multiple lines and results, but that’s also in the latest released version of GTK+, 2.12.1, and only fixed in subversion.)


  1. Posted November 19, 2007 at 4:12 pm | Permalink

    Yeah…we definitely need to improve the installer clickthrough process.

    The only actual question they ask is where to install, but nowadays the pygtk stack is such a tiny percentage of modern hard drives that we should just assume C:/ and be done with it.

  2. skoob
    Posted November 19, 2007 at 4:25 pm | Permalink

    Is it just me or do those hypnotic blobs in the plot seem to pulsate when the web page is scrolled?

    Especially if smooth scrolling is turned on.

  3. Owen
    Posted November 19, 2007 at 4:42 pm | Permalink

    skoob: no it’s not just you. There’s a related effect you see live … if you change the function from say, cos(2*xx) to cos(xx), you a really strong impression of animation between the two endpoints, even if you know that no such thing is going on.

%d bloggers like this: