I’ve used the following code:
v = GetActiveView()
[(Show(s).RescaleTransferFunctionToDataRange()) for s in GetSources().values() if servermanager.GetRepresentation(s, v) is not None and GetDisplayProperties(s, v).Visibility==1]
Render()
Second line filters uninitialized sources (see this post).
Render()
may be omitted if you don’t need to redraw view right away.