How to use psychopy create interruption task

Put the interruption task inside the main loop and skip it based on a variable (e.g. skipInterruption) which you set as True except for when you want to show it.