This whole comment tree seems to be full of people who deliberately misunderstand physics and economics.
Europe is still going to have access to gas if Russia cuts its whole supply come winter -- in fact, 60% of the European gas supply will still be present. Probably a bit more, since lots of crisis efforts have been made to provide gas from other sources. Only part of the heating needs have to be replaced.
Let's say Germany still had the, what, 8000 gigawatts of nuclear power online that it has shut down during the last decade? Wild-ass guess, but it's a lot. That's base load, of course. Electric power.
Resistive heating is dirt cheap to deploy in terms of capital costs. You can buy a 2000W heater for $20, perfect for domestic use. So the operating costs dominate. Using a heat pump is 3-4 times better in terms of operating costs; that's not as easy to deploy but many places will already have A/C installed and that's usually the same thing.
So then it becomes a question of economics; many industrial processes cannot be replaced with electricity. But as we've seen, heating of living spaces can easily be done with electricity.
So in the kind of crisis we're discussing here, those thousands of gigawatts of nuclear electricity would be pretty damn useful for emergency heating of German homes and businesses, during months where the gas would be more profitably used for the industrial processes that require it.
It sure as hell wouldn't have been cheap, but it would be cheaper than shutting down half the economy, which is what we're preparing for right now.
It's a moot point, of course, because those ~17 nuclear plants are already shut down. But it would very much have made the issue dramatically less painful.