#9805: save_session is completely broken in the notebook
----------------------------+-----------------------------
Reporter: was | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.11
Component: notebook | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Dependencies:
Stopgaps: |
----------------------------+-----------------------------
Changes (by ppurka):
* status: new => needs_review
Old description:
> Try
> {{{
> save_session('foo')
> }}}
> in the notebook. Boom!
>
> The problem is these lines in misc/session.pyx:
> {{{
> if embedded():
> # Also save D to the data directory if we're using the notebook.
> save(D, '../../data/' + name)
> }}}
>
> When I rewrote the notebook I forgot to change this appropriately. I'm
> not sure exactly what the right fix is, but it is to somehow replace
> '../../data/' by the data
> directory (which is defined by the variable DATA in the notebook).
New description:
Try
{{{
save_session('foo')
}}}
in the notebook. Boom!
The problem is these lines in misc/session.pyx:
{{{
if embedded():
# Also save D to the data directory if we're using the notebook.
save(D, '../../data/' + name)
}}}
When I rewrote the notebook I forgot to change this appropriately. I'm
not sure exactly what the right fix is, but it is to somehow replace
'../../data/' by the data
directory (which is defined by the variable DATA in the notebook).
----
Apply [attachment:trac_9805.patch] to devel/sage (it is a workaround)
--
Comment:
[attachment:trac_9805.patch Example patch] is provided to inform user of
the workaround. I don't see how to get the worksheet directory of the user
automatically. The DATA variable seems inaccessible from session.pyx.
--
Ticket URL: <http://trac.sagemath.org/ticket/9805#comment:1>
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.
For more options, visit https://groups.google.com/groups/opt_out.