using magnetic repulsion to shoot up a rocket into space. Have you seen how maglev trains work?
A maglev gun sounds equally problematic.
The inherent upside to onboard propulsion is you can apply power for the entire duration of escape, reducing both maximum speed and delta-speed.