Is the document above aimed at audiences who are using PsychoPy-to-JS services other than Pavlovia (and if so, what are these services)? If not, then the answer in the discourse link above must be incorrect or outdated. In that case, how does one sync Python code directly with Pavlovia (that is, not through the builder, but through the code window)?
I have an experiment that runs perfectly locally via PsychoPy. I have the project uploaded to Pavlovia, and it will not run in Pavlovia. I am looking for a way to insert print statements in the online version so I can debug whatever issues are occurring in JS/on Pavlovia.
To answer your question, the sync button from the Builder of PsychoPy works, and seems to upload the correct experiment files to Gitlab to run (to both the root directory and the html directory). But when I click the sync button from the coder window, the files do not get uploaded to the html file in Gitlab/run in Pavlovia (only to the root folder, which, like you said, means they do not affect the Pavlovia experiment in any way).
Thanks again for your help, and please let me know if I can clarify anything (this is my first time trying to use PscyhoPy/Pavlovia).
That document is about converting code from a Code Component in the Builder. Basically, small snippets of code can be converted to some extent by the PsychoPy application but auto-converting an entire script is not possible (and won’t be). If you intend to run your study online you should create your experiment in Builder and just use the minimal amount of Python code that you need as Code Components within the Builder interface. That’s our recommendation anyway, but especially when running online