Opening a file with Pavlovia Compatibility

Hi, I have a csv file that details filepaths (and a few other things) that I’d like to feed into the resource manager module for an online experiment. My question is how should I go about opening the csv file and extracting the string filepaths in a way that’s compatible with the conversion to javascript for online experiments? This would be straightforward if I could use packages like pandas, but I see that python packages don’t make the javascript conversion. As such, I’m wondering how I should go about implementing this in python so that it will suitably be converted to javascript.

Hello bmidler,

are you using the Builder to program your experiment or do you do the coding by hand? The PsychoPY Builder generates the needed PsychoJS-code when you push the experiment to Pavolvia. You might to look into the crib sheet to avoid problems that might arise due to the conversion.

There are multiple ways to read *.csv or stimuli. Look here for a description of the various options:

https://www.psychopy.org/online/resources.html

Best wishes Jens