According to another article(not on FR)he was exuberant because his lawyer had gotten him a good plea bargain, but showing excitement over the ruling pissed the judge off.
Well it would be a breach of decorum, but why let that influence the main matter being judged... why not a separate contempt of court process for it. It does not sound right.