Quitting gracefully (and when to give notice?)

I would tell your boss on a Thursday afternoon over coffee or some other 1 on 1 situation appropriate to your relationship. Ask his guidance for how to proceed (i.e. telling HR verbally or in an email, telling team members, he may prefer to tell the team, he may prefer for you to tell them, if there is a staff meeting it might happen there.)