#10637: Implement sage -sws2rst
-----------------------------------+----------------------------------------
Reporter: nthiery | Owner: jason, mpatel, was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: notebook | Keywords: ReST, worksheet
Work_issues: | Upstream: N/A
Reviewer: Nicolas ThiƩry, ... | Author: Pablo Angulo
Merged: | Dependencies:
-----------------------------------+----------------------------------------
Comment(by jbandlow):
This is great! I notice that when this is run on old notebook files, one
gets the following error:
{{{
Traceback (most recent call last):
File "/usr/local/src/sage/sage-4.7.rc0/local/bin/sage-sws2rst", line 66,
in <module>
process_sws(file_name)
File "/usr/local/src/sage/sage-4.7.rc0/local/bin/sage-sws2rst", line 38,
in process_sws
for cell in os.listdir(cells_path):
OSError: [Errno 2] No such file or directory: '/tmp/Iterators and
backtracking.sws/sage_worksheet/cells'
}}}
I think this is because there is another directory level on these old-
style worksheets:
{{{
'/tmp/Iterators and backtracking.sws/sage_worksheet/<some
number>/cells'
}}}
It would be nice if this error could be caught and the user given a
message to the effect of "Conversion failed. Try opening your notebook
with a recent version of sage, resaving it, and running the script again".
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10637#comment:16>
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.