Skip to content

Hassle-free setup repository for scripting PsychoPy using Conda in your preferred code editor. This repository provides a comprehensive walkthrough of the steps and scripts required to automate the installation of dependencies and streamline your development environment.

Notifications You must be signed in to change notification settings

matsjfunke/psychopy-install-setup

Repository files navigation

PsychoPy cookbook


Understanding PsychoPy

What is PsychoPy?

PsychoPy is a versatile software designed for creating and conducting experiments in psychology and neuroscience.

What can you do with PsychoPy?

PsychoPy's features for experimental psychology and neuroscience research:

  1. Stimulus Presentation:
    • Precise timing for presenting diverse stimuli types:
      • Text, Images, Sounds, and Videos: presentation of static and dynamic stimuli.
      • Shapes and Custom Drawings: flexibility in creating visual patterns and stimuli with precise control over properties like color, size, and position.
  2. Interactive Responses:
    • Capture participant input via mouse clicks or keyboard responses, for measuring reaction times and accuracy.
  3. Integration with External Devices:
    • Seamless integration with devices:
      • Eye trackers, EEG systems, fMRI Scanner, brain imaging data, Response Boxes and Motion Capture Systems

Possibilities of PsychoPy

Experimental paradigms (structured methodologies) used in research to investigate specific psychological or cognitive phenomena. These paradigms are designed to control variables, manipulate conditions, and measure outcomes systematically. Examples include tasks for attention, memory, perception, learning, emotion, social interaction, and neurofeedback, among others.

How can you create / conduct experiments in PsychoPy?

PsychoPy offers versatile ways to design and conduct experiments from traditional lab-based experiments to online studies:

  1. Builder View:
    • drag-and-drop graphical interface for beginners to create experiments, ideal for quick setups without coding.
  2. Coder View:
    • experienced users to script experiments in Python for precise control and customization, accommodating complex experimental designs.
  3. Standalone Scripting:
    • writing Python scripts using PsychoPy libraries, useful for automation and integration into larger workflows.
  4. Online Studies (PsychoJS):
    • running experiments in web browsers, facilitating remote data collection and accessibility across different devices.

Scripting Setup using Conda in your own Editor

Easy Install (for mac)

  1. clone this repo & move into directory
git clone https://github.com/matsjfunke/psychopy-install-setup.git
cd psychopy-install-setup
  1. enable the main_script.zsh
chmod 755 ./main_script.sh
  1. activate the environment:
conda activate psychopy-env
  1. test the activation by running test experiment:
python stroop.py
  1. now you're able to code psychopy in your own code editor

  2. deactivate the environnment with:

conda deactivate

Manual Install

  1. Prerequisites homebrew not necessary but makes things easier Git Conda:

  2. Create an folder / directory for your PsychoPy projects

mkdir your-directory-name
  1. Clone this repo or copy the environment.yml into the directory
git clone https://github.com/matsjfunke/psychopy-install-setup.git
cp psychopy-install-setup/environment.yml path/to/your-directory-name
cd your-directory-name
  1. Create the Environment from environment.yml
conda env create --file environment.yml
  1. Activate the Environment
conda activate psychopy-env
  1. start coding your own experiment

About

Hassle-free setup repository for scripting PsychoPy using Conda in your preferred code editor. This repository provides a comprehensive walkthrough of the steps and scripts required to automate the installation of dependencies and streamline your development environment.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •