#16004: Update notebook to utilize pure javascript JSmol for default live 3-D
-------------------------------------------------+-------------------------
Reporter: gutow | Owner: gutow
Type: enhancement | Status:
Priority: major | needs_work
Component: notebook | Milestone: sage-6.4
Keywords: Jmol 3D 3-D | Resolution:
Authors: gutow | Merged in:
Report Upstream: Reported upstream. Developers | Reviewers:
acknowledge bug. | Work issues:
Branch: | Commit:
Dependencies: #16003 | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by vbraun):
To serve the jsmol files (and thus work with the chrome sandbox forbidding
direct filesystem access) you just have to add
{{{
self.add_static_path('/java/jsmol',
os.path.join(os.environ["SAGE_ROOT"],"local","share","jsmol"))
}}}
to `flask_version/base.py` in the notebook right under the corresponding
jmol line. Files will then be at http://localhost/java/jsmol/
Saving files back from the browser requires a simple http POST handler,
see http://flask.pocoo.org/docs/0.10/patterns/fileuploads/ for an example.
--
Ticket URL: <http://trac.sagemath.org/ticket/16004#comment:68>
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/d/optout.