#6820: [with patch, needs review] browse sage docs
-----------------------------+----------------------------------------------
Reporter: jhpalmieri | Owner: tba
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.1.2
Component: documentation | Keywords: documentation
Reviewer: mpatel, cremona | Author: John Palmieri
Merged: |
-----------------------------+----------------------------------------------
Changes (by cremona):
* keywords: => documentation
* reviewer: => mpatel, cremona
Comment:
I think this is a great facility. Just being able to pop up the 4 main
docs so easily is worth including this!
When I tried browse_sage_doc(identity_matrix) and the like, I found that
the first time I did it I got that error:
{{{
sage: browse_sage_doc(identity_matrix)
---------------------------------------------------------------------------
IOError Traceback (most recent call
last)
/home/john/.sage/temp/ubuntu/12456/_home_john__sage_init_sage_0.py in
<module>()
/home/john/sage-4.1.1/local/lib/python2.6/site-
packages/sage/misc/sagedoc.pyc in __call__(self, obj, output, view)
842 from sage.server.notebook.cell import Cell
843 cell = Cell(0, '0', '0', None)
--> 844 cell.set_introspect_html(s)
845 html = cell._Cell__introspect_html
846 if view:
/home/john/sage-4.1.1/local/lib/python2.6/site-
packages/sage/server/notebook/cell.pyc in set_introspect_html(self, html,
completing, verbose)
1587 finally:
1588 # Contents should be flushed on close().
-> 1589 fd_html = open(html_name, 'r')
1590 new_html = fd_html.read()
1591 fd_html.close()
IOError: [Errno 2] No such file or directory:
'/home/john/.sage/sage_notebook/doc/009e7e626d87d8b9c5ce659c5b01cdb7.html'
}}}
but the second time it worked fine. Same again with
browse_sage_doc(EllipticCurve).
I'm not sure how useful the output='rst' or the view=False options are
though.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6820#comment:4>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---