Ask Your Question

mmmm1998's profile - activity

2018-06-28 14:26:31 -0600 asked a question About sage.plot.plot.EMBEDDED_MODE

Cantor program used sage-cli, and in this program there is need to disable external viewers. I found sage variable, which, I hope, will do it: sage.plot.plot.EMBEDDED_MODE.

But after setting sage.plot.plot.EMBEDDED_MODE to True I haven't any changes: external viewer starts, for example, for plots.

But in src/sage/structure/graphics_file.py on line 161 we have launch_viewer function, which, I think, start external viewer and where there is this condition:


from sage.plot.plot import EMBEDDED_MODE
if EMBEDDED_MODE:
    raise RuntimeError('should never launch viewer in embedded mode')

So, as I see, if sage.plot.plot.EMBEDDED_MODE is True, we don't start external viewer, because we exit from function launc_viewer with RuntimeError. But sage works fine with EMBEDDED_MODE = True. Could anyone explain this behavior, is it a bug with sage.plot.plot.EMBEDDED_MODE or I am wrong?

2018-05-03 12:27:16 -0600 received badge  Scholar (source)
2018-04-28 17:23:58 -0600 received badge  Student (source)
2018-04-28 17:17:41 -0600 asked a question Sage on Ubuntu17.10

Sage not in repositories on ubuntu 17.10 and on download page I don't see version for Ubuntu newer than 16.04.
So, I should build Sage from source, right?
And if I will do it, could I add my compiled sage to the download page and Ubuntu repositories?