iPython Running Old Version of Script
17:04 06 Sep 2026

I come with an unusual problem (to me). I am trying to run a script in my psychoPy environment with IPython, and it keeps running an old version of my script even though I have saved this new one multiple times and even copy and pasted the code into a new text file. It doesn't import any pieces from other files, everything is just on one file. The reason I can tell its old is because it is running as if the set number of total trials is 336 (and the cd trials is 112 and fr trials is 224), so this amount of rows appears in the excel file and in the progress bar later in the script. I am temporarily trying to have 10 total trials (5 of each) for practicing the script. Would anyone know why this is happening and/or how to fix it?

Here's the tiny block of code that was saved but isn't reflected when I run the script:

# TRIALS 
cd_trials = int(5) # 112
fr_trials =  int(5) #224
total_trials = cd_trials + fr_trials

I can also provide more of the code if that would be helpful.

Thank you for your help!

python python-3.x ipython psychopy