You can't exchange heat with vacuum
If you put a pipe with hot gas inside, in space, it will get colder by convection.
Blow air through the pipe.