Pavlovia Question

Hello all,

I have an experiment that originally I wrote in PyschoPy2 that I would like to post on Mturk. It seems the more I look into doing this the more complicated it gets. Originally I thought it would be as easy as converting to PyschoPy3 and posting to Pavlovia, but it seems it is not this simple. Currently the instructions I have gathered over multiple pages of PsychoPy Discourse and the main page - it looks like I have to convert the code to pscyhoJS in Gitlab then somehow post the Gitlab code into PAvlovia, and then post the Pavlovia link into Amazon Mturk.

If someone could give me some direction in what I really need to do to get my code up and running on Mturk I would greatly greatly appreciate it. It may also help future PyschoPy users as well!

PS - part of my code includes writing the data into a csv file as the experiment progresses. Where will this data live? Pavlovia? Gitlab? Mturk?


Hi There,

Did you originally write your experiment in coder view or builder view? :slight_smile:


Hello, I wrote it originally in PsychoPy 2, I am able to convert them into PscyhoPy 3 in coder view. I don’t see an easy way to convert them into PsychoJS however. Am I able to code in PsychoJS in coder view? Or is the only way to code PsychoJS in Builder view - meaning I have to completely recreate the experiment in builder view?

-Thank you for your help!

At the moment I am afraid that you are correct, that the autotranslate tool is only available in Builder view.

Depending on how complex your code is, a good place to start (rather than completely recreating from scratch) is to see how much of the code you have can be implemented as code snippets in builder view (go custom>code). The auto translate may not function for specific python libraries (as it needs to know the JS equivalent). A good resource to work through any bugs you encounter whilst making this transition is the crib sheet here PsychoPy Python to Javascript crib sheet

Good luck and I hope this helps,