Yes, this is one of the most user-pain-causing impacts of Sage switching by default from Python2 (in sage-8.9) to Python3 (in sage-9.0).
In CoCalc for *sage worksheets* we default to Python2 (sage-8.9) and intend to for a while still. However, if you open a terminal and type sage_select 9.0 then restart your project, it will switch to using the Python3 version of Sage by default, and Sage worksheets should fully work (except of course you have to use print-as-a-function). I certainly always imagined that we would have some preparser support for print statements before making the big switch with Sage. However, there was no momentum or anybody who wanted to implement that, so it didn't happen. Also, that's really just the tip of the iceberg. There are many, many other subtle little things that break going from python2 to python3, and just dealing with print statements is nowhere close to solving all the problems that would come up. For what it is worth, I'm seriously considering putting some major work in during the next month to make https://share.cocalc.com provide more overlap with some of the problems that sagecell.sagemath.org solves. If I do that, I'm likely going to prioritize longterm support for sage-8.9 (python2) on an equal footing with python3, since I have the resources do so, unlike with the sage cell server... -- William On Thu, Feb 13, 2020 at 12:52 PM Andrey Novoseltsev <[email protected]> wrote: > > print behaviour has changed in Python 3 which is default since Sage 9.0. I > believe that CoCalc is working for you fine because you are still using a > Python 2 version. If there is a way to make it work long term (e.g. via > preparser), the change has to be implemented in SageMath itself. > > -- > You received this message because you are subscribed to the Google Groups > "sage-cell" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-cell/22a4ca44-fba0-4a23-8d0c-1a663d90adc9%40googlegroups.com. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/CACLE5GDEq29kTj%3DXPKNTRjBRivo2-wiJJ5S9Zdq3YTxy1Pvuaw%40mail.gmail.com.
