If a nuclear weapon is exploded in a vacuum-i. e., in space-the complexion of weapon effects changes drastically:
First, in the absence of an atmosphere, blast disappears completely.
Second, thermal radiation, as usually defined, also disappears. There is no longer any air for the blast wave to heat and much higher frequency radiation is emitted from the weapon itself.
Third, in the absence of the atmosphere, nuclear radiation will suffer no physical attenuation and the only degradation in intensity will arise from reduction with distance. As a result the range of significant dosages will be many times greater than is the case at sea level.
Sounds like you’d end up with just a big blast of radiation