#12719: Upgrade to IPython 0.13
----------------------------------------------------------+-----------------
Reporter: kini | Owner: tbd
Type: enhancement | Status:
needs_review
Priority: critical | Milestone:
sage-5.4
Component: packages | Resolution:
Keywords: sd40.5 | Work issues:
Report Upstream: N/A | Reviewers:
Volker Braun, Mike Hansen, Jason Grout
Authors: Mike Hansen, Volker Braun, Jason Grout | Merged in:
Dependencies: #13459 | Stopgaps:
----------------------------------------------------------+-----------------
Comment (by jhpalmieri):
I guess one reason to turn off the preparser for magic lines is so that in
a line like
{{{
%ed file1.py
}}}
the "1" doesn't get preparsed. I don't know how the old "time" command was
written; did it just call "%time"? If so, maybe that was to allow lines
starting with "time" to be preparsed.
For doctesting, I don't know if IPython is used at all during doctesting.
If it's possible to turn on this extension using pure Python, we can add
it at the top of each file as it's doctested, with a patch like this to
local/bin/sage-doctest:
{{{
#!diff
diff --git a/sage-doctest b/sage-doctest
--- a/sage-doctest
+++ b/sage-doctest
@@ -490,6 +490,7 @@ def extract_doc(file_name, library_code=
""" % os.path.join(os.getcwd(), file_name)
s += "from sage.all_cmdline import *; \n"
+ s += "ADD NEW CODE HERE\n"
s += "import sage.plot.plot; sage.plot.plot.DOCTEST_MODE=True\n" #
turn off image popup
s += r"""
def warning_function(f):
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12719#comment:138>
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.