How to Use Code from Pavlovia Demos in a Local PsychoPy Environment?

Hello,

I am using PsychoPy in my local environment with Visual Studio Code. I would like to use the code from the demo experiments uploaded on Pavlovia, but I’m not sure which files I should take and use.

I am not very proficient in Python, and I often struggle with PsychoPy.

For example, on the following page, should I use the .py file to run this experiment in my local environment?

I know this might be a ridiculously simple question for some people. It’s a bit embarrassing, but I’d really appreciate any help.

Thank you!

I would recommend forking the project.

Alternatively, download the psyexp file and open it in Builder. In this case you would also need the spreadsheet and image folder.

Thank you for your response.

I am using the standalone Python version of PsychoPy in VS Code, not the Builder. In this case, would it still be possible to download and use the experiment as you mentioned?

I use PsychoPy Builder in VS Code by running psychopy/app/psychopyApp.py

Is there a reason why you are using Coder? You could download the Python file and use it directly but it will be more difficult to modify.

Oh no, I didn’t realize there was a reply—sorry for the late response! I just saw the email notification.

The reason I’ve been using PsychoPy by importing the package in my local Python environment is because the Builder tutorials I found were based on much older versions, and I found them a bit hard to follow intuitively.

Also, using Builder feels quite difficult when trying to work alongside tools like ChatGPT or Claude.