# Use of threejs and jmol in sage 9.1 for windows

I have been using SageMath 9.1 in Ubuntu 18.04 and the performance is excellent -- no questions asked.

Now I am trying to use SageMath 9.1 in a Msc level course, but the students' computers are all under Windows 10, and so on the classroom computer I have installed the latest 64 version of SageMath 9.1(with the 3 icons in the desktop, including the Jupyter NB which is the environment I always use). Using it, 3D scenes can only be seen as still images using "viewer='tachyon'". When using "viewer='jmol'" or "viewer='threejs'",there is no error message a scene is created, but it is empty -- blank space, no image. It seems that threejs and jmol are bundled in the repo for the Windows version of SageMath but for some reasons do not work.

In Windows 10 I have anaconda3 installed with Python 3 environment and Jupyter NB. Using it, I have tried to install Sagemath 9.1 from conda-forge using 'conda' (insluding conda-forge as a channel, with and without 'mamba' -- according to the respective instructions in the Sage manual for installing sage from anaconda) and this worked well in Ubuntu but not in Windows 10 -- in the latter case I get error message on the anaconda prompt: Encountered problems while solving. Problem: nothing provides requested sage

I have now also installed node.js and npm and, via the latter, also three.js . However, the installed SageMath does not recognize this version, and I do not know how to import it in the installed SageMath 9.1.

As a last measure, I have also installed the latest 64 version of Java and the latest 64 version of jmol (to be used via double-click on jmol.jar in the decompressed jmol bundle). The problem is similar as with threejs: the SageMath 9.1 does not recognize the installed jmol, and I do not know how to make it do so.

This is the situation. Can you help resolve this? I need to be able to use at least one of threejs and/or jmol (preferably, threejs!!) as alternative to tachyon in visualizing 3D scenes. Otherwise, I will have to radically restructure the course without using SageMath, since using Linux instead of Windows is, unfortunately, not an option.

Hopefully someone will know of a solution. I don't.

Sage is available via Conda but only on Linux and macOS, not on Windows so far.

If you attempt to fix the problem by installing extra software, do that in the Cygwin in which Sage runs.

Otherwise it's very unlikely to solve anything.

Other options I can see are merely workarounds, but might allow you to run your course:

Possible duplicate of https://ask.sagemath.org/question/461...

First of all, thanks to slelievre for the serious response and the recommendations which are clearly in correct positive direction. As slelievre notes, these are workarounds, so I decided to continue the search of a more direct and comprehensive solution before eventually resorting to following slelievre's recommendations. Second, SPECIAL THANKS to iguananaut for the second comment above. There is indeed connection between the present question and the question iguananaut refers to in the comment above. The two questions have a key non-void intersection, although they do not fully overlap. More important is that the solution proposed there is one of the three key points in the solution/answer of the present problem/question. I will now post my suggested solution in the answer section.