ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 02 Jun 2017 21:00:46 -0500import print_function only works in one cell in linuxhttp://ask.sagemath.org/question/37776/import-print_function-only-works-in-one-cell-in-linux/I just installed Sage in Linux Mint, and the Import `print_function` only seems to work in one cell in the Notebook.
If I type this in the top cell it works fine:
from __future__ import print_function
print("all","good","dogs","eat","shoes",sep=" now ")
to print this:
all now good now dogs now eat now shoes
But if I do exactly the same print in the next cell, without the import, I get a syntax error.
However, the import does work for all cells in Sage for Windows.cybervigilanteFri, 02 Jun 2017 21:00:46 -0500http://ask.sagemath.org/question/37776/