#9238: J. Gutow's update to Jmol in the notebook...
------------------------------------------------+---------------------------
Reporter: gutow | Owner: gutow
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: notebook | Keywords:
Author: Jonathan Gutow | Upstream: N/A
Reviewer: Jason Grout, Karl-Dieter Crisman | Merged:
Work_issues: |
------------------------------------------------+---------------------------
Changes (by gutow):
* status: needs_work => needs_review
Old description:
> I believe this drop-in set of javascript files now works. Need testers!
>
> NOTE this trac is outdated and has moved to the notebook google site.
> See http://code.google.com/p/sagenb/issues/detail?id=1 for details.
>
> If you are using Sage > 4.5 you can get the latest .spkg here:
>
> {{{
> ./sage -f
> http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.4.spkg
> }}}
>
> {{{
> (or sage -f
> http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.4.spkg)
> }}}
>
> If you are using <= Sage 4.5 the below should still work, but is
> outdated. The newer package above will not work on older Sage because of
> changes in the notebook architecture.
>
> To test, do:
>
> {{{
> sage -f
> http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.2.spkg
> }}}
>
> or
>
> {{{
> ./sage -f
> http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.2.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 5 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:
Ready for testing, but requires two steps. Starting with a clean Sage
4.6.2: [[BR]]
1. patch for Jmol at the command line. See
[http://trac.sagemath.org/sage_trac/ticket/9232 #9232].
1. Apply the patch trac_9238_interactive_js.patch in attachments (below).
I have addressed the following issues (let me know if I've missed
anything): [[BR]]
* Addition of the ability to hide the "advanced controls". [[BR]]
* Fix so that the advanced controls are hidden when the applet is asleep
(no accidental calls to nonexistent applets).
* Fix to issue of not properly loading all applets when a worksheet with
a lot of applets is reopened (please check this one carefully). [[BR]]
* Fixes to vocabulary and labels to make things clearer. *Hidden the div
with the State in it. (Still there b/c I hope to be able to recreate the
way the user left it on close, rather than starting fresh each time.)
Happy testing and thank you to those who do test!
You can try an older version without going through patching by following
the instructions below (the newer patched version is better).
If you are using Sage > 4.5 you can get the latest .spkg here:
{{{
./sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.4.spkg
}}}
{{{
(or sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.4.spkg)
}}}
If you are using <= Sage 4.5 the below should still work, but is
outdated. The newer package above will not work on older Sage because of
changes in the notebook architecture.
To test, do:
{{{
sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.2.spkg
}}}
or
{{{
./sage -f
http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.2.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 5 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:
Ready for testing, but requires two steps. Starting with a clean Sage
4.6.2:
1. patch for Jmol at the command line. See
[http://trac.sagemath.org/sage_trac/ticket/9232 #9232].
1. Apply the patch trac_9238_interactive_js.patch above.
I have addressed the following issues (let me know if I've missed
anything):
* Addition of the ability to hide the "advanced controls".
* Fix so that the advanced controls are hidden when the applet is asleep
(no accidental calls to nonexistent applets).
* Fix to issue of not properly loading all applets when a worksheet with
a lot of applets is reopened (please check this one carefully).
* Fixes to vocabulary and labels to make things clearer.
* Hidden the div with the State in it. (Still there b/c I hope to be
able to recreate the way the user left it on close, rather than starting
fresh each time.)
Happy testing and thank you to those who do test!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9238#comment:107>
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.