sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.32k stars 453 forks source link

Make threejs / three.js the default 3d viewer instead of jmol #22408

Closed egourgoulhon closed 4 years ago

egourgoulhon commented 7 years ago

Now that #22389 (Make Three.js work offline) and #22261 (Three.js: Default lighting) have been merged, it is time to make threejs the default 3d viewer, in replacement of jmol.

A discussion about this started in #22389. In addition, one may note the following:

pros:

cons:

CC: @paulmasson @novoselt @sagetrac-tmonteil @kcrisman @slel @williamstein @embray @infinity0 @kiwifb @egourgoulhon @strogdon @timokau @jplab

Component: graphics

Keywords: 3D, plot3d, threejs, three.js, jmol

Author: Paul Masson, Eric Gourgoulhon

Branch: fcac479

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/22408

jhpalmieri commented 4 years ago
comment:98

Then it's due to #25026, I think. Would this be the right fix?

diff --git a/build/pkgs/jmol/spkg-install b/build/pkgs/jmol/spkg-install
index 27798e6232..65dfa6df44 100644
--- a/build/pkgs/jmol/spkg-install
+++ b/build/pkgs/jmol/spkg-install
@@ -6,6 +6,7 @@ rm -f "${SAGE_LOCAL}/bin/jmol"
 # jsmol goes in a dedicated directory
 sdh_install src/jsmol "${SAGE_SHARE}/"
 rm -rf src/jsmol
+chmod a+rx src

 sdh_install -T src "${SAGE_SHARE}/jmol"
 sdh_install jmol "${SAGE_LOCAL}/bin/"
jhpalmieri commented 4 years ago
comment:99

Is there a trac ticket open for the jmol permissions issue?

novoselt commented 4 years ago
comment:100

I don't think so, at least I didn't open one.

jhpalmieri commented 4 years ago
comment:101

Replying to @novoselt:

I don't think so, at least I didn't open one.

28596. In my opinion, you should have opened a ticket the same time you reported the problem on sage-devel: sage-devel threads can get lost pretty easily.

jhpalmieri commented 4 years ago
comment:102

Replying to @fchapoton:

This seems to have broken the doc building on some python3 sage:

see https://patchbot.sagemath.org/log/0/Ubuntu/16.04/x86_64/4.4.0-161-generic/atlas/2019-10-10%2016:18:22?plugin=docbuild

Could you try #28596 to see if Andrey's guess is right? With that branch, do sage -f jmol and see if it fixes your problems.