The 1841 census shows her with her family in the Canongate, Edinburgh:
Mary Ainslie, 40
George Ainslie, 16, engineer
Andrew Ainslie, 14, iron founder
Helen Ainslie, 12
Lilias Ainslie, 8
Mary Ainslie, 6
All are born in Midlothian except for Mary senior.