import print_function only works in one cell in linux

asked 2017-06-03 04:00:46 +0100

cybervigilante gravatar image

updated 2017-07-14 00:23:40 +0100

vdelecroix gravatar image

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