Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
The seat is most famous as the location of William Ewart Gladstone's upset victory in the Midlothian Campaign of 1880, regarded as the birth of the modern political campaign in the United Kingdom. After Gladstone's victory it became the first non-English constituency to be represented by a serving prime minister.
In 1801 the Parliament of Ireland was merged with the Parliament of Great Britain to form the Parliament of the United Kingdom . The first general election of the new parliament was the general election of 1802. There was no change to the boundaries of any pre-existing Westminster constituency, and 1802 boundaries were used also in the general elections of 1806, 1807, 1812, 1818, 1820, 1826, 1830 and 1831.
For the 1832 general election, as a result of the Representation of the People Act 1832, the constituency was redefined. The boundaries of counties and burghs for parliamentary purposes ceased to be necessarily those for other purposes, but nominally the Edinburghshire constituency consisted of the county of Edinburgh minus the burghs of Edinburgh, Leith, Portobello, and Musselburgh. Edinburgh was again covered by the Edinburgh constituency, and Leith, Portobello and Musselburgh were covered by the Leith Burghs constituency.
The Midlothian and Peebles Northern constituency consisted of the Calder and Suburban districts and part of the Lasswade district of the county of Midlothian, and the Peebles and Southern constituency consisted of the county of Peebles, the Gala Water district and part of the Lasswade district of county of Midlothian, and the burghs of Bonnyrigg, Lasswade, and Penicuik in county of Midlothian.
The constituency elected one Member of Parliament (MP) by the first past the post system. There were 56 voters in 1708, 68 in 1710, about 80 between 1715 and 1754, 84 in 1764, 104 in 1774, 93 in 1788, 95 in 1790 rising to 123 in 1811, 174 in 1820, 168 in 1826 and 165 in 1830.
The seat was redefined for the 1832 general election and replaced for the 1918 general election.
Cookson, J. E. (April 2004). "The Edinburgh and Glasgow Duke of Wellington Statues: Early Nineteenth-Century Unionist Nationalism as a Tory Project". The Scottish Historical Review. 83 (215): 23–40. doi:10.3366/shr.2004.83.1.23. JSTOR25529753.