Ideally there would not be a user-visible way to find out how Sage is being 
run. Otherwise we'll just end up with code that only works with the 
interface that the developer prefers (like the OSI disaster in ACPI 
tables). 

The differences should be abstracted away by the Sage api, so to show 
graphics you use graphics.show() independently of the interface. 

Maybe you can tell us what you want to achieve, not how?



On Monday, July 15, 2013 9:58:55 AM UTC-4, 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.
>
> Thank you,
> Pedro
>
>
>
>
>
>

-- 
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.


Reply via email to