psychopy.org | Reference | Downloads | Github

Problem import excel file in pavlovia

Hello everyone!

Problem:
I have to put my first experiment into Pavlovia for an online passation.
For now, I use the xlrd method to import my excel file containing variables but, I read that the xlrd method doesn’t work on Pavlovia…

Questions:
1/ Does the xlrd method (as below) really not work on Pavlovia?

import xlrd
in_file = 'my_file.xlsx'
inbook = xlrd.open_workbook(in_file)
insheet = inbook.sheet_by_index(0)

2/ And, if its doesn’t work, Should I use the trialhandler method?
(I don’t master this method…)

Thank you very much for your help!!
Romane

You can just use a Builder loop.

For example, take a look at my Independent Randomisation demo.