URL of experiment: https://pavlovia.org/run/djwyen/language-learning/html/
Description of the problem:
We are working on a project in PsychoPy. Our project extensively uses python code, but all of it is in code components of routines in the builder (ie the experiment is fully created in PsychoPy’s builder). It runs perfectly fine in the desktop version, but errors crop up in the Pavlovia version. We get the error “ReferenceError: Can’t find variable: selection_example”
With the way our experiment is set up, there is a code component in a routine at the beginning of the experiment which uses pandas to import data from an excel file to a DataFrame. We access data in the DataFrame to create a string called ‘selection_example’ which we pass to the ‘Selected rows’ parameter of a loop in our experiment.