Light-driven exchange between extended and contracted lasso-like isomers of a bistable [1]rotaxane.