#12719: Upgrade to IPython 0.13
--------------------------------------------------------------------------+-
Reporter: kini |
Owner: tbd
Type: enhancement |
Status: closed
Priority: critical |
Milestone: sage-5.7
Component: packages |
Resolution: fixed
Keywords: sd40.5 |
Work issues:
Report Upstream: N/A |
Reviewers: Volker Braun, Mike Hansen, Jason Grout, Jeroen Demeyer
Authors: Mike Hansen, Volker Braun, Jason Grout, Jeroen Demeyer |
Merged in: sage-5.7.beta1
Dependencies: #13459, #9191, #13717, #13963 |
Stopgaps:
--------------------------------------------------------------------------+-
Comment (by jhpalmieri):
How are users supposed to configure Sage's IPython now? See
[https://groups.google.com/d/topic/sage-support/yZ9W-un7Hlg/discussion
sage-support]. Right now, it looks like IPython's config files (either
`.sage/ipython-0.12/profile_default/ipython_config.py` or
`.sage/ipython-0.12/profile_sage/ipython_config.py`) are not loaded when
Sage initializes its terminal. A possible solution:
{{{
#!diff
diff --git a/sage/misc/interpreter.py b/sage/misc/interpreter.py
--- a/sage/misc/interpreter.py
+++ b/sage/misc/interpreter.py
@@ -672,9 +672,11 @@
def __init__(self, **kwargs):
# Overwrite the default Sage configuration with the user's.
+ from IPython.frontend.terminal.ipapp import load_default_config
new_config = Config()
new_config._merge(DEFAULT_SAGE_CONFIG)
new_config._merge(kwargs.get('config', Config()))
+ new_config._merge(load_default_config())
kwargs['config']=new_config
super(SageTerminalApp, self).__init__(**kwargs)
}}}
Then `.sage/ipython-0.12/profile_default/ipython_config.py` will be read
and merged with Sage's configuration. Is this the right solution? Should I
open a ticket? Or am I missing something?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12719#comment:281>
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.