As the GPIO pins are 2 x 20, I’m guessing there must be one of those crimp connectors that I could use with some ribbon cable.
The ones which were used on the back of old type IDE drives look very close to what I am thinking, but I seem to remember they had some orienting thing on them.
That isn’t needed as there isn’t the other part on the RasPi anyway.