#14188: IPython 0.13: merge user configuration with Sage configuration
-----------------------------------------------+----------------------------
Reporter: jhpalmieri | Owner: jason
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-5.8
Component: misc | Resolution:
Keywords: IPython config | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun,
William Stein, John Palmieri
Authors: John Palmieri, Volker Braun | Merged in:
Dependencies: | Stopgaps:
-----------------------------------------------+----------------------------
Comment (by jhpalmieri):
A change like this fixes the failures on bsd.math.washington.edu. I
haven't run a full test suite yet.
{{{
#!diff
diff --git a/sage/misc/interpreter.py b/sage/misc/interpreter.py
--- a/sage/misc/interpreter.py
+++ b/sage/misc/interpreter.py
@@ -660,7 +660,7 @@
verbose_crash = True),
TerminalInteractiveShell = Config(
ast_node_interactivity = 'all',
- colors = 'LightBG' if sys.stdout.isatty() else 'NoColor',
+ colors = 'LightBG' if (sys.stdout.isatty() and 'TERM' in
os.environ) else 'NoColor',
confirm_exit = False,
separate_in = ''),
# The extension is *always* loaded for SageTerminalApp
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14188#comment:19>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.