Experiment runs online but the tasks are not displayed as it should be

Wrong @jon, actually! I made PyHab, which is a kind of add-on for running studies with babies (and all but useless right now because we can’t bring them into the lab), but @jon (Peirce) is the one behind PsychoPy.

So I have a question about how you made this. Did you hand-code the python that populates the numbers? Or did you do that as a code component? It doesn’t appear to have been translated into the JavaScript, so the numbers are just never being set when you run it online. If you hand modified the python script, it won’t work. If you did it all in builder, it may be using a component that doesn’t translate correctly.

Also, for the code component that’s in there, it won’t work. “Import” statements don’t work in code components online, and random.shuffle does not exist. Fortunately, that at least you can recreate in JavaScript, see my answer here: Pilot experiment stuck in "initialising the experiment"

I hope that helps.

2 Likes