Replaces an invalid iPython notebook