Online oTree Course for Beginners – Spring 2024

  From 14th of November to 12th of December 2022

  Mondays & Thursdays, 15:00-18:00 (UTC+1)

This course aims to introduce students and researchers in the social sciences to oTree, a leading framework based on Python to develop and administer experiments in the social sciences.

The course is best suited for absolute or semi-beginners, as it does not assume any prior knowledge of programming either in Python or in any front-end language such as JavaScript, HTML, CSS.

The course does assume a basic understanding of experimental methodology in the social sciences.

Participants will be provided with the necessary knowledge to program experiments of simple complexity in oTree and to administer them over the internet. Participants will also be given the opportunity to discuss specific programming issues encountered during the development of their own projects with the course’s instructor.

Two optional 3h primer sessions on Python and front-end languages (HTML, CSS and JavaScript) will precede the actual course targeting participants with absolutely no previous programming experience.

The course is open to a maximum of 60 participants.


Tommaso Batistoni
CESS Postdoctoral Researcher and Lead Programmer



The course has an intense format and is organised as follows: 24h of live teaching (30h including the primer sessions), split in 8 (10) bi-weekly sessions of 3h each; one office hour per week in groups of max 5 participants; small programming assignments in-between live classes.

The course will be taught using the Zoom app.

All classes will be recorded and made available to the participants.

The course will run from 05/03/2024 to 05/04/2024.

The primer sessions will run on Tuesday 5th and Friday 8th of March.

Class times: Tuesdays and Fridays, 14:00 – 17:00 (UTC).

The course will focus on oTree’s latest version and will cover all the fundamental components of developing an experimental study in oTree.

The content will be covered following a project-oriented approach, where each topic will be used to develop a predefined experimental design that will be shared at the beginning of the course.

During the course, participants will make a balance use of both oTree Studio (the dedicated web platform to develop oTree experiments using a point-and-click interface) and a text editor to develop the course project.

The course content will include (but will not be limited to) the following topics:

  • Primer on Python and front-end languages (optional)
  • oTree installation and set up of an IDE (PyCharm will be used for demonstration)
  • oTree conceptual structure and architecture of an oTree project
  • Introduction to oTree Studio and its capabilities
  • Basic oTree commands
  • Overview of and practice with the main oTree built-in methods
  • Template syntax
  • Static files usage (e.g. images, videos, data files)
  • Randomization of experimental components (e.g. treatments, inputs, questions, partners)
  • Multiplayer experiments
  • Debugging
  • Web deployment of oTree applications

(The course content might be subject to small variations).

Oxford affiliated: £180 (£230 with primer classes)

Others: £220 (£280 with primer classes)

If you need to cancel your course participation, please notify us as soon as possible at Note that cancellations notified after …(TBA)…, as well as failure to attend, will not be entitled to any form of refund. Prior to …(TBA)… all cancellations will incur £50 administration fee and the difference will be refunded to you in the form of your original payment.

Apply for this course

Registration closed.


For queries related to the event, please contact Melanie Sawers at