#8263: Document ALL environment variables used by Sage
-----------------------------+----------------------------------------------
   Reporter:  drkirkby       |       Owner:  mvngu     
       Type:  defect         |      Status:  new       
   Priority:  major          |   Milestone:  sage-4.4.4
  Component:  documentation  |    Keywords:            
     Author:                 |    Upstream:  N/A       
   Reviewer:                 |      Merged:            
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by drkirkby):

 I stumbled across this 'SAGE_MATPLOTLIB_GUI' in one of the patches for
 matplotlib.

 {{{
 #####################################################################
 # Sage code -- all this code just sets the graphical_backend variable.
 # If True, that means we try to build GUI's; otherwise, we definitely
 # will not even try, even if we could.  See trac #5301.
 #####################################################################
 if os.environ.has_key('SAGE_MATPLOTLIB_GUI'):
     if os.environ['SAGE_MATPLOTLIB_GUI'].lower() == 'no':
         graphical_backend = False
     else:
         graphical_backend = True
 else:
     graphical_backend = False

 print "NOTE: Set SAGE_MATPLOTLIB_GUI to anything but 'no' to try to build
 the Matplotlib GUI."
 if graphical_backend:
     print "Building graphical backends.  WARNING: This may causing some
 annoying and confusing behavior"
     print "when using Sage + pylab, at least on OS X."
 else:
     print "Not building any matplotlib graphical backends."
  #####################################################################

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8263#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to