import print_function only works in one cell in linux

asked 2017-06-02 21:00:46 -0500

cybervigilante gravatar image

updated 2017-07-13 17:23:40 -0500

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.

edit retag flag offensive close merge delete