from future import * statements must be the first statements in a file. However, the old Sage Notebook inserts synchronization code before the file, and the new SageNB inserts prompt changing code first. Both of the aforementioned changes break the code.
CC:  @qed777 @williamstein
Component: notebook
Author: Tim Dumol
Reviewer: Alex Leone
Merged: sagenb-0.7
Issue created by migration from https://trac.sagemath.org/ticket/7207