Hosting experiment from the coder window (not from builder) on Pavlovia

URL of experiment: Does not exist yet

Description of the problem:

I am trying to move an experiment from the coder window onto Pavlovia. I see in the tutorials that most people are doing it from the builder window (on that ‘create new project’ icon’). However, I already had the code, so I did not use builder to create the experiment. So, two questions:

  1. Is it possible to move from coder straight to Pavlovia?
  2. If not, is it possible to convert whatever is in the coder window to the builder window and then onto Pavlovia?

PS. not a coder - really struggling.

Thanks in advance.

I’m assuming by Coder you’re referring to a script that is written in Python. That can’t run online, as Python isn’t a language supported by web browsers. That is the power of the Builder approach - from the same .psyexp experiment file, it can generate either a script in Python (for running locally on your computer), or in JavaScript (for running online via web browsers).

So to get your experiment to run online, you would have to translate your Python to JavaScript. That wouldn’t be easy, even for a person familiar with both languages. It would be strongly recommended to re-create your experiment via the Builder graphical interface, and let it do the hard work of creating the JavaScript for you.

3 Likes

Oh, okay… I thought as much. Thank you so much for your help!