How necessary is giving a full two weeks' notice?
Not f*cking necessary.
But there are reasons to do it (or stay even longer!) and it behooves you to understand the bigger picture around letting your manager know you're out.