In the 18th century Edinburgh was the Boston of its day, host to the brightest minds.