-
-
Notifications
You must be signed in to change notification settings - Fork 686
Description
NOTE: This ticket has been replaced by #12299
Ready for testing.
For inclusion in new Flask notebook see enhanced Jmol in Flask. Note that all fixes and enhancements to the Jmol interface from SageDays 31 are in the Flask version and not this ticket. The Jmol changes for the Flask notebook should be included in the Flask spkg soon. See #11080.
Setting this up on your own copy of Sage requires two steps. Starting with a clean Sage 4.6.2 (for 4.7+ skip step 1):
- Patch for Jmol at the command line (not for 4.7+). See #9232.
- Apply the .spkg to get the new Jmol
./sage -f "http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.6.spkg" - Apply the following patches in order (not necessary for Flask): attachment: trac_9238_interactive_js.patch, attachment: trac_9238-add-help.patch , attachment: trac_9238_jmol_lib_async.patch, attachment: trac_9238_memory_IE.patch and attachment: trac_9238_nice_IE_warnings.patch. These are best applied using the hg_sagenb.apply(...) command within sage.
- Apply the patch (not necessary for 4.7+) attachment: Trac_9238_script_extension.patch using the hg_sage.apply(...) command within sage. Exit sage and run a
./sage -b.
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.)
- Fix to loading pages with many Jmols hanging. (FF on MacOS just doesn't work reliably or reproducibly so I put up a warning and suggest they switch to Chrome).
- Workaround for bug in MacOS Safari that causes hang when trying to get a static image to sleep an applet if more than 9 applets in a worksheet (I believe this is a memory leak problem).
- Tested extensively on Linux with FF and Chromium and on MacOS with Safari, Chrome and FF. Works well with both linux browsers and with Chrome on MacOS. MacOS/Safari is usable, MacOS FF is not.
- Lowered memory requirements for Jmol. This improves performance in Safari for many applets.
- Many advanced controls do not work with IE/win. Provide warning and suggest using Chrome, which does work. Those that fail do so quietly. Sleeping and controlling function color do work.
Happy testing and thank you to those who do test!
Note: This ticket has been replaced by #12299.
CC: @TimDumol @kcrisman @rkirov
Component: notebook
Keywords: sd31, sd32
Reviewer: Jason Grout, Karl-Dieter Crisman, William Stein, Jonathan Gutow
Issue created by migration from https://trac.sagemath.org/ticket/9238