Code Component not working when running in Pavlovia

When you go to “view code” for your experiment in Pavlovia, it should take you to a complete gitlab repository that includes both the python and the JS code, as well as the psyexp file and any stimulus files and data files. Basically the whole experiment folder. You will need to make that repository public, go to “settings” then “general” and “permissions”. You can then link the repository, which will have a URL like No repository · Jonathan Kominsky / TestMouseContains · GitLab but with your username and project name after the slashes.

@N_T IS the basic idea that you are shuffling a larger list of trials and want it to be mostly random, but also to have certain non-random trials? In that case I would suggest an approach like the one I proposed in this thread (read to end): Randomising types of trials so the same stimuli do not repeat one after the other - #4 by jonathan.kominsky

Long story short you will have a file with all of your trials in it, you will have some code which manually shuffles arrays that represent the contents of those trials, and you will then use that array to reference the relevant stimuli. You are basically making your whole order as a separate list and then using it as a key to your actual stimuli, but trying to let PsychoPy do all of the loading and presentation with its built-in systems.