Behavior Research Methods

, Volume 39, Issue 4, pp 950–958 | Cite as

PyEPL: A cross-platform experiment-programming library

  • Aaron S. Geller
  • Ian K. Schleifer
  • Per B. Sederberg
  • Joshua Jacobs
  • Michael J. KahanaEmail author


PyEPL (the Python Experiment-Programming Library) is a Python library which allows cross-platform and object-oriented coding of behavioral experiments. It provides functions for displaying text and images onscreen, as well as playing and recording sound, and is capable of rendering 3-D virtual environments for spatial-navigation tasks. It is currently tested for Mac OS X and Linux. It interfaces with Activewire USB cards (on Mac OS X) and the parallel port (on Linux) for synchronization of experimental events with physiological recordings. In this article, we first present two sample programs which illustrate core PyEPL features. The examples demonstrate visual stimulus presentation, keyboard input, and simulation and exploration of a simple 3-D environment. We then describe the components and strategies used in implementing PyEPL. We acknowledge support from NIH Grants MH55687, MH61975, and MH62196; NSF (CELEST) Grant SBE-354378; and the Swartz Foundation.


Virtual Reality Virtual Environment Behavior Research Method Time Stamp Configuration File 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. Baas, M. (2005). PyODE: Python bindings for the Open Dynamics Engine [Computer software]. Retrieved December 29, 2005, from Scholar
  2. Bates, T., &D’Olivero, L. (2003). Psyscript: A Macintosh application for scripting experiments.Behavior Research Methods, Instruments, & Computers,4, 565–576.CrossRefGoogle Scholar
  3. Beazley, D. (2005). SWIG: Simplified Wrapper and Interface Generator [Computer software]. Retrieved December 28, 2005, from Scholar
  4. Brainard, D. H. (1997). The Psychophysics Toolbox.Spatial Vision,10, 443–446.CrossRefGoogle Scholar
  5. Castro Lopo, E. de (2005a). Libsamplerate [Computer software]. Retrieved December 28, 2005, from Scholar
  6. Castro Lopo, E. de (2005b). Libsndfile [Computer software]. Retrieved December 28, 2005, from Scholar
  7. Cohen, J. D., MacWhinney, B., Flatt, M., &Provost, J. (1993). PsyScope: A new graphic interactive environment for designing psychology experiments.Behavior Research Methods, Instruments, & Computers,25, 257–271.CrossRefGoogle Scholar
  8. Ekstrom, A. D., Kahana, M. J., Caplan, J. B., Fields, T. A., Isham, E. A., Newman, E. L., et al. (2003). Cellular networks underlying human spatial navigation.Nature,425, 184–187.CrossRefPubMedGoogle Scholar
  9. Keck, D. (2007). ActiveWire driver & interfaces for OS X [Computer software]. Retrieved January 17, 2007, from Scholar
  10. MacWhinney, B., St. James, J., Schunn, C., Li, P., &Schneider, W. (2001). STEP—A system for teaching experimental psychology using E-Prime.Behavior Research Methods, Instruments, & Computers,33, 287–296.CrossRefGoogle Scholar
  11. Pelli, D. G. (1997). The VideoToolbox software for visual psychophysics: Transforming numbers into movies.Spatial Vision,10, 437–442.CrossRefPubMedGoogle Scholar
  12. Plant, R. R., Hammond, N., &Turner, G. (2004). Self-validating presentation and response timing in cognitive paradigms: How and why?Behavior Research Methods, Instruments, & Computers,36, 291–303.CrossRefGoogle Scholar
  13. PyGame (2005). [Computer software]. Retrieved December 28, 2005, from Scholar
  14. Scavone, G. P. (2005). RtAudio [Computer software]. Retrieved December 28, 2005, from Simple DirectMedia Layer (2005). [Computer software]. Retrieved December 28, 2005, from Scholar
  15. Smith, R. (2005). Open Dynamics Engine [Computer software]. Retrieved December 28, 2005, from, A. (2006). VisionEgg [Computer software]. Retrieved January 25, 2006, from Scholar

Copyright information

© Psychonomic Society, Inc. 2007

Authors and Affiliations

  • Aaron S. Geller
    • 1
  • Ian K. Schleifer
    • 2
  • Per B. Sederberg
    • 3
  • Joshua Jacobs
    • 1
  • Michael J. Kahana
    • 1
    Email author
  1. 1.University of PennsylvaniaPhiladelphia
  2. 2.Brandeis UniversityWaltham
  3. 3.Princeton UniversityPrinceton

Personalised recommendations