A Florida judge’s harsh reaction to a disrespectful teenage defendant, captured on court video, was a reminder that judges don’t shed their emotions when they don their black robes.

The recent episode quickly went viral. But for a few dozen new federal judges, it became a lesson in finding ways to acknowledge they experience a range of feelings on the bench and to channel them appropriately.