#9238: J. Gutow's update to Jmol in the notebook...
---------------------------+------------------------------------------------
Reporter: gutow | Owner: jason, was
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.5
Component: notebook | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Old description:
> I believe this drop-in set of javascript files now works. Need testers!
>
> To test, do:
>
> {{{
> sage -f http://sage.math.washington.edu/home/jason/sagenb-0.8.p3.spkg
> }}}
>
> (this will overwrite your current sagenb code (but not your worksheets),
> so you might want to do it in a test Sage installation)
>
> Alternatively, you can use the attached files and jmol.zip:
>
> Attached are replacement javascript files for jmol_lib.js and
> notebook_lib.js, which are located in sagenb/data/sage/js. Changes to
> notebook_lib.js are just some added calls to functions in jmol_lib.js to
> let the javascript know when applets are closed. The library jmol_lib.js
> is a complete rewrite.
>
> Also requires latest Jmol version 11.8. To do this download the zipped
> version of the sagenb/data/jmol directory from this link (3.4 Mb):
>
> http://www.uwosh.edu/faculty_staff/gutow/jmol.zip
>
> Unzip this directory and replace the existing sagenb/data/jmol directory.
> I have updated things to the latest version of the jmol applet that loads
> incrementally and cleaned out many files that were not used.
>
> Adds the following features to the notebook:
>
> 1) No more than 8 Jmols will be active at once. This prevents running
> out of memory. The user is provided with a link to wake up sleeping
> Jmols that they wish to manipulate. Sleeping Jmols are replaced with a
> static image.
>
> 2) A spin on/off check box is now provided.
>
> 3) The user may choose among a number of display sizes.
>
> 4) In the function tab, the user may change function color and mesh
> color.
>
> 5) The "State" tab displays the Jmol script to get the Jmol display.
> Eventually this will probably be hidden. If we can get the notebook to
> store this user views would also transfer across sessions.
New description:
I believe this drop-in set of javascript files now works. Need testers!
To test, do:
{{{
sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.spkg
}}}
or
{{{
./sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.spkg
}}}
depending on your command line syntax.
This will change the Jmol files, jmol_lib.js and notebook_lib.js (current
as of Sage 4.4.3), so you might want to do it in a test Sage installation.
Adds the following features to the notebook:
1) No more than 8 Jmols will be active at once. This prevents running out
of memory. The user is provided with a link to wake up sleeping Jmols
that they wish to manipulate. Sleeping Jmols are replaced with a static
image.
2) A spin on/off check box is now provided.
3) The user may choose among a number of display sizes.
4) In the function tab, the user may change function color and mesh color.
5) The "State" tab displays the Jmol script to get the Jmol display.
Eventually this will probably be hidden. If we can get the notebook to
store this user views would also transfer across sessions.
--
Comment(by gutow):
I've figured out how to make an spkg that only changes the files pertinent
to Jmol. Using this .spkg we should be able to test it against different
versions of the notebook. The only notebook specific file that is change
is notebook_lib.js. If using a notebook with changes to this file since
Sage-4.4.3 a merge should be performed rather than a straight .spkg
install.
I've have tried to address some of the issues mentioned above. I still
suggest installing to a test system. A public example of this will also
be available on my server (link to follow, once installed).
Version 1.1 of Jmol for Sage. Install with command
sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.spkg
or
./sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.spkg
depending on your command line syntax.
I'm also updating the ticket to show this instead of the first version.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9238#comment:28>
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.