Scotland also isn't cosmopolitan, certainly not on the scale of London. It hasn't had anything close to the scale of immigration that other parts of the UK have had. It has deep seated issues with sectarianism rather than race.
There are parallels with Brexit, though I don't think many of the underlying causes are the same. I very much agree that those who play identity politics and deal in absolutes - "you must agree with me or you are an X" - are being burned an electorate who have heard that line a few times too often.
The election in France with Marine La Pen does have the potential for another Trump like upset - the next one to watch.
Remember that the UK is 80% white and London is 50% white; it's really striking how and probably relevant that the nonwhite population of the UK is concentrated in a few metropolitan areas.
But remember that "white" and "foreign" are not the same thing! Edinburgh has a substantial Polish community. I have coworkers from Ukraine and Romania.
"How cosmopolitan is Scotland, really" is a complex question. It's official policy of the very popular SNP, and there's little toehold for UKIP or xenophobic politics. I think they've quite successfully attached the free-floating blame to Westminster. While in the rest of the country blaming foreigners is more popular.
Having different press (including separate editions of the Mail and Sun) probably also makes a difference. Brexit is very much a long-term press project.
Edit: I didn't mean to imply that it's not a problem now - but it's no means as big a problem as it used to be (and I have direct experience through family members of horrific bigotry towards and to Catholics in Scotland).
Funny thing about the "people still get knifed at Old Firm games" comment itself is that it raises something that isn't really a problem so much anymore (Rangers/Celtic hadn't met in four years until September, where there was one arrest out of ~60,000 fans) and misses the stuff that really is an issue - areas which are still deeply segregated + gang violence split along these lines, provocative/offensive songs, flags and banners used by both sides at the football
But as you said - it's nothing like what our grandparents' generation would have experienced, or what went on in Northern Ireland during the Troubles.
I remember having a rather surreal experience a few years back, sitting at a bar on the Meadows during the festival with the Lady Boys of Bangkok on one side and an Orange Walk on the other.
I'd have said it went all the way back to the Civil War and the Jacobite insurgencies. Certainly NI's sectarianism is explicit about the Battle of the Boyne 1688.
There are parallels with Brexit, though I don't think many of the underlying causes are the same. I very much agree that those who play identity politics and deal in absolutes - "you must agree with me or you are an X" - are being burned an electorate who have heard that line a few times too often.
The election in France with Marine La Pen does have the potential for another Trump like upset - the next one to watch.