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.Thu, 28 Jun 2018 14:26:31 -0500About sage.plot.plot.EMBEDDED_MODEhttp://ask.sagemath.org/question/42767/about-sageplotplotembedded_mode/[Cantor program](https://en.wikipedia.org/wiki/Cantor_(software)) 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:
<pre><code>
from sage.plot.plot import EMBEDDED_MODE
if EMBEDDED_MODE:
raise RuntimeError('should never launch viewer in embedded mode')
</code></pre>
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?mmmm1998Thu, 28 Jun 2018 14:26:31 -0500http://ask.sagemath.org/question/42767/Configure a GUIhttp://ask.sagemath.org/question/40639/configure-a-gui/ Hello everyone,
I'm a new Sagemath user and I'm interested in set up a GUI. The main ones I've found are Spyder and Cantor. However, Spyder is intended for Python and the Sagemath backend for Cantor doesn't seem to work properly...
How can I configure Spyder and Cantor to work with Sagemath as a backend?
Thank you so much for your answers!dg.aragonesTue, 16 Jan 2018 08:03:39 -0600http://ask.sagemath.org/question/40639/Using Cantor with Sage in Ubuntu?http://ask.sagemath.org/question/32825/using-cantor-with-sage-in-ubuntu/Hello I have installed sage backened for cantor, the path to Sage is /usr/bin/sage i even tried /usr/bin/sagemath but it get stucked in initializing session and nothing happensShashank ThapaFri, 18 Mar 2016 12:50:41 -0500http://ask.sagemath.org/question/32825/[UPD2] Cantor doesn't work with sagehttp://ask.sagemath.org/question/10245/upd2-cantor-doesnt-work-with-sage/Hello!
I installed cantor and it's backend for sage. Cantor found my sage. But when I input any code and press shift-enter nothing happens. I also tried to click button evaluate worksheet but it didn't help me.
In what could be the reason? Please help me. Thanks.
UPD1:
andrei@andrei-notebook ~ $ cantor
cantor(18136)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libcantorpart.so"
Object::disconnect: Unexpected null parameter
cantor(18136)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!
UPD2:
My OS is Linux Mint 15 Cinnamon.AndreWinSun, 16 Jun 2013 00:30:15 -0500http://ask.sagemath.org/question/10245/What is the executable file for cantor?http://ask.sagemath.org/question/7837/what-is-the-executable-file-for-cantor/Setting up cantor for sage.fjouardSun, 02 Jan 2011 05:59:57 -0600http://ask.sagemath.org/question/7837/using %cython in Cantor with sage backendhttp://ask.sagemath.org/question/7611/using-cython-in-cantor-with-sage-backend/To use the %cython magic function in the sage notebook you can do something like:
%cython
from math import sin
def f(x):
return sin(x**2)
def integral(double a, double b, int N):
cdef double dx = (b-a)/N
cdef int i
cdef double s = 0
for i in range(N):
s += f(a+dx*i)
return s * dx
But in cantor you can't since the sage mode in Cantor is not the same as the sage notebook.
How can i do something like that in Cantor without using an external editor or without using more commands?
ngativSun, 22 Aug 2010 12:06:38 -0500http://ask.sagemath.org/question/7611/