On 7/18/13 8:33 AM, Ivan Andrus wrote:
On Jul 17, 2013, at 11:17 PM, Jason Grout
<jason-s...@creativetrax.com> wrote:
On 7/15/13 6:58 AM, Pedro Cruz wrote:
Hello,
what sequence of instructions could tell what Sage 5.10
"user-interface" is currently being used ?
Possible answers are:
- cloud.sagemath.org - Sage Notebook - "linux" command line -
"windows" command line (?) - "cygwin" command line (?) - new
others...
Long ago I used to check if variable
sage.plot.plot.EMBEDDED_MODE is defined to see if notebook is
being used.
I have a patch that changes EMBEDDED_MODE to a dictionary that
tells you what frontend (notebook or cell server) is being used.
I've been waiting for the switch to git to submit it, though. I
hope to submit it in the next month or so.
FWIW, sage-mode sets EMBEDDED_MODE to true when displaying inline
plots so that it knows where to grab the files from and such. It can
be changed to use a new way, but please cc me on the ticket/pull
request so I can be ready.
It's this patch:
https://github.com/sagemath/sagecell/blob/master/sage-patches/01-sage-embedded.patch
(there are some modifications in the other patches in that directory too).
It's running right now on sagecell. I'll clean it up before submitting
it. I'll try to remember to CC you.
Jason
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.