Original: After her grandfather's death in 1850 she was trained to teach, but her refusal to acknowledge Napoleon III prevented her from serving in a state school.
Simplified: After her grandfather's death in 1850 she was trained to teach, but after few times she saw that Napoleon III prevented her from serving in a state school.