He was elected to the Legislative Assembly of Lower Canada for the Lower Town of Quebec in 1796 and for the Upper Town in 1800. In 1797, he was named superintendent of Saint Lawrence Pilots. Raby was named an officer of Trinity House of Quebec when it was formed in 1805.
He was elected to represent Lower Town of Quebec in the Legislative Assembly of Lower Canada in 1796 and Upper Town in 1800. In 1797, he held a position as superintendent of Saint Lawrence Pilots. Raby was appointed an officer of Trinity House of Quebec when it was established in 1805.