-
-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update Jmol spkg to support pure javascript 3-D in notebook... #16003
Comments
This comment has been minimized.
This comment has been minimized.
Branch: u/gutow/ticket/16003 |
New commits:
|
Commit: |
comment:6
some typos : "privides" and "supposted" |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:11
Of course, on Macs
doesn't really do that much, since it is only fictively case-sensitive :-) Okay, trying to look into this between much grading and other stuff. |
This comment has been minimized.
This comment has been minimized.
Dependencies: #16004 |
comment:13
I should point out that the command-line Jmols work just fine with this; it's the notebook piece that requires more review (as well as testing on some other platforms). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:17
Minor item. It appears jmol version and release date are hardcoded somewhere, probably in |
Changed branch from public/ticket/16003 to u/kcrisman/jmol |
comment:29
Hi strogdon,
Weirdly, I do not see this problem when using a Jmol (from command line, of course) - it seems to acquire the correct info from system itself. So in principle we don't even have to change this. I think this is ready for positive review as long as it actually applies properly, and of course pending #16004 or some variant thereof. |
comment:30
Latest available version is now Jmol-14.2.4_2014.08.03-binary.tar.gz at http://sourceforge.net/projects/jmol/files/Jmol/Version%2014.2/Version%2014.2.4/ |
comment:31
Do you see any substantive differences between this and that? (I assume it doesn't have the #12212 change in any case.)
This is about Ah, found it - |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:33
"unzip" is not one of our build-time dependencies so far: http://www.sagemath.org/doc/installation/source.html#general-requirements I'm not terribly concerned about that one, but this is why I went a different route in #17020. But if you want to require unzip then it should be documented. Why does this ticket depend on #16004? We should merge the jmol update asap, no need to wait as long as it doesn't break something that is currently working. Anything related to jsmol can then be dealt with in #16004 if necessary. |
comment:34
As the description points out:
To say this more clearly, I believe the new jmol interface uses js even for Java applets when used on the web (not command line), so one would have to reorganize in any case. Also, I don't know that there are enough other goodies to make the Jmol update worthwhile, per se. |
comment:35
Well, new features in Jmol would be needed for #12212, but it requires Jmol 14.2.5. |
comment:36
The notebook jmol viewer is working with #17020, and I suspect it is also working with this ticket. Of course not in chrome, which has by now permanently kicked the old java applet to the curb. Works in firefox with the icedtea plugin, though. Unless somebody objects I would propose that we make a modified tarball that does not require unzip, that is, by re-packing the upstream tarball. Frederic, it seems that 14.2.5 is not out yet? Since you seem to know upstream, maybe you can suggest that they put jsmol uncompressed inside their archive, and not a zip-with-tar file. |
comment:37
Yes, the changes for #12212 are not yet in a release, they are in fact in there: http://sourceforge.net/projects/jmol/files/Jmol-beta/Jmol%2014.3/Jmol%2014.3.6/ I am not sure to know "upstream". I have had a private mail exchange about #12212 with somebody who was very reactive and efficient, and had the power to include changes in the latest jmol beta. I can give you his name and mail if you send me a private mail. |
comment:38
Huh, that's surprising, Jonathan made it sound like the interface had changed enough that it wouldn't. We're even having trouble with icedtea here at AIMS in any case :-(
That seems reasonable; Jonathan, did you have a reason for including that? Maybe it's just because that's how upstream packages it... |
comment:39
Replying to @vbraun:
Maybe I misunderstand but just upgrading jmol as in #17020 without doing anything else break jmol in the notebook here. This is with firefox and either icedtea or oracle plugin. |
comment:40
As far as I understand, the 14.3.x series is the current beta and 14.2.x is the stable branch. E.g. look at the SF download page http://sourceforge.net/projects/jmol/files/ |
comment:41
Also, why is
added to the dependencies? |
comment:42
Ok, I can confirm that the jmol upgrade does not work with the current notebook. I must have had the wrong version installed. |
comment:43
Replying to @vbraun:
Tried to answer this a few days ago, but it didn't go through. The JVM allows the server to run a headless version of Jmol to generate high quality static images. If the JVM is not available things default to the lower quality Tachyon images (with some work those cold be made better). The other reason to keep this is that if I ever finish sorting out the issues caused by the attempts to kill Java applets in browsers, I can begin to utilize this server-side engine to make much more efficient and adaptable packages of data to send to the browser for viewing. |
comment:44
But its still not a build requirement for jmol, right? Only a (optional) runtime dependency of sagenb. |
comment:45
I propose to close this ticket as duplicate of #17020. I imported all commits there, but switched to the different packaging that does not require |
comment:46
Sure, no problem, that makes perfect sense, as long as #17020 works out fine :-) |
Changed author from gutow to none |
Reviewer: Volker Braun, Karl-Dieter Crisman |
Update Jmol to Jmol-14.0.13 which supplies the JSmol pure javascript version of Jmol. Utilizing this requires significant changes to how the notebook utilizes Jmol/JSmol. The notebook changes are in ticket #16004.
In addition to the updates to the new-style SPKG, the tar.gz from Jmol needs to be renamed before it matches the Sage standards. The Jmol project distributes a large number of different archives. The appropriate one for this SPKG is the Jmol-14.0.13-binary.tar.gz, which needs to be renamed to jmol-14.0.13.tar.gz (note the lower case "j"). The Jmol archive can be downloaded using this direct link Jmol-14.0.13-binary.tar.gz. Rename and place in "upstream" directory.
This will break the current Jmol in the notebook as a serious reorganization of supporting files was required to support both java and javascript live 3-D.
After adding the new jmol-14.0.13.tar.gz to the upstream directory checkout this ticket and install the package.
To test you will need the updates to the notebook as well.
Depends on #16004
CC: @kcrisman @novoselt @strogdon @kiwifb
Component: packages: standard
Keywords: Jmol 3D 3-D
Branch/Commit: u/kcrisman/jmol @
f8ba6aa
Reviewer: Volker Braun, Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/16003
The text was updated successfully, but these errors were encountered: