Many-body localization and thermalization in the full probability distribution function of observables