#11078: jmol in the flask notebook
------------------------+---------------------------------------------------
Reporter: jason | Owner: jason, mpatel, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: notebook | Keywords: sd31
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Description changed by jason:
Old description:
> The attached patch solves an issue with jmol finding the right .jmol.zip
> file in the new flask notebook. This patch should only be applied
> *after* the notebook is moved to a flask notebook.
>
> The patch should replace the following line in
> `sage/plot/plot3d/base.pyx`
> {{{
> f.write('set defaultdirectory "%s"\n' % archive_name)
> }}}
> with
> {{{
> import sagenb
> f.write('set defaultdirectory "cells/%s/%s"\n' %
> (sagenb.notebook.interact.SAGE_CELL_ID, archive_name))
> }}}
>
> Note: I haven't actually attached a patch since I hope that we can
> incorporate the new Jmol in, which would conflict with the patch (but
> would not conflict with the actual changes on this ticket).
New description:
The attached patch solves an issue with jmol finding the right .jmol.zip
file in the new flask notebook. This patch should only be applied *after*
the notebook is moved to a flask notebook.
The patch should replace the following line in `sage/plot/plot3d/base.pyx`
{{{
f.write('set defaultdirectory "%s"\n' % archive_name)
}}}
with
{{{
import sagenb
f.write('set defaultdirectory "cells/%s/%s"\n' %
(sagenb.notebook.interact.SAGE_CELL_ID, archive_name))
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11078#comment:6>
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.