Very common in US, very rare in Eu. I believe is partially cultural, partially to show off, and mostly because there aren't enough public study spaces/libraries. (at least in Northwestern). In Eu, you look like a dork if you work in a bar, because is much more common to go to libraries. And to find suitable spots in an university to study.