Can't see code in coder window

Hello,

Can anyone help me see the code in the coder screen? The right hand side of the screen, where you would normally see the code is grey.

I’ve got three experiments which are .py files. When I open them in PsychoPy they can run fine but I can’t see any code on the right hand side of the coder screen (I can see everything else in the screen: output etc). I’m currently using 2023.2.3 but originally the experiments were created in 2022.2.2. The problem remains the same in both versions (and in 2022.2.0). I’ve also tried 2025.1.1 but it opens horribly as the buttons on the display are almost entirely cut off (which is a whole other issue). I’ve tried uninstalling and installing.

The laptop updated to windows 11 24H2 but I’m too late to uninstall it. If I had to guess I’d say the problem stems from the update but I have no idea.

Any help much appreciated. Thank you!

Please could you show a screenshot? I’m not sure what you are expecting.

The large grey space on the right hand side I would expect to show the code (in the attached example the code in Pavlovian.py). Is that not correct?

Fixed it! I had to reset the entire laptop, reinstall Windows etc.

I think what probably happened is the file that was open was in some way causing an error, so Coder was failing to load it. Once you’d opened it, it was stored in your appData.cfg file in %AppData%/psychopy3 so when you then opened the app it was trying to restore your previously opened files and failing. Resetting your whole laptop would fix this as it would clear that file, so it makes sense that it did, but in future you can just delete that file to reset it rather than reinstalling your whole OS.