#5814: %prun doesn't work in the notebook
-------------------------------+--------------------------------------------
Reporter: rlm | Owner: tkluck
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-feature
Component: notebook | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Travis Scrimshaw
Authors: Timo Kluck | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Changes (by tscrim):
* status: needs_review => positive_review
* reviewer: Keshav Kini => Travis Scrimshaw
Old description:
> In ipython, one can use the %prun directive to use a profiler on cell
> contents. We can support the same in sage. The attached patches allow
> this.
>
> Apply:
>
> * [attachment:trac_5814_enable_prun_in_notebook.patch]
> * [attachment:trac_5814_add_doctests_to_prun_object.patch]
New description:
In ipython, one can use the %prun directive to use a profiler on cell
contents. We can support the same in sage. The attached patches allow
this.
Apply:
* [attachment:trac_5814_enable_prun_in_notebook.patch]
* [attachment:trac_5814_add_doctests_to_prun_object.patch]
* [attachment:trac_5814-prun_notebook-review-ts.patch]
--
Comment:
Hey Timo,
I've uploaded a small review patch which fixes the doctests and gives full
coverage. Thank you for the patch.
Best,[[BR]]
Travis
{{{
sage -t ../misc/prun.py
[6 tests, 0.0 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 0.2 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5814#comment:11>
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.