Just plugged mine in yesterday (putting my engine back in). I plugged it in before the engine was on the mounts, so it was pretty easy to get at. The electrical connection just pulls off. It's one wire that goes to a black cap. This all comes with it when you pull it off.
Then I believe the knock detector unscrews (haven't done this myself).
EGR plumbing shouldn't be in the way. Turbo might be. With my turbo off, I *think* i could unplug the knock detector, can't say forsure.