Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

jmol troubles with Sage 8.0 #7

Open
videlec opened this issue Nov 27, 2017 · 10 comments
Open

jmol troubles with Sage 8.0 #7

videlec opened this issue Nov 27, 2017 · 10 comments

Comments

@videlec
Copy link

videlec commented Nov 27, 2017

On the 8.0 version there is some troubles with jmol. See

@embray
Copy link
Contributor

embray commented Dec 19, 2017

These seem like two separate issues really, and the first one sounds like a problem with the user's computer.

@embray
Copy link
Contributor

embray commented Apr 23, 2018

Some of the issues with JMol should be fixed by
https://trac.sagemath.org/ticket/25025 and https://trac.sagemath.org/ticket/25088

That said, I have still yet to be able to get JMol graphics to work correctly on Windows.

@wuuzx
Copy link

wuuzx commented Jan 18, 2019

I encounter the second problem on windows 10 too. it looks like jmol is using a virtual path instead of a windows real path, so i just set the sage working directory same as the virtual path, and it works!

@embray
Copy link
Contributor

embray commented Jan 18, 2019

@wuuzx Would you mind adding a bit more detail? I haven't looked at JMol since...last Spring. But last time I did I couldn't even get it to work on Windows at all so I got frustrated and gave up on the issue.

@wuuzx
Copy link

wuuzx commented Jan 21, 2019

When I first install sage, I set sage working directory as c:\users\myusername. With this configure, JMol doesn't working. When I use plot3d, JMol popup with a blank window. Than I found in JMol java console that JMol searching files in c:\home\sage, that is the problem I think. So I change the sage working directory to c:\home\sage (I create it first of course), then everything is OK.

@HustLion
Copy link

I can't get jmol to work even with the info @wuuzx provided. But threejs viewer works. Here's an example:

x, y = var('x,y')
G = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
show(G,figsize=(5,5),title="Sample Figure",aspect_ratio=1, viewer='threejs')

ref: https://ask.sagemath.org/question/39269/launched-jmol-viewer-for-graphics3d-object-fails/

@embray
Copy link
Contributor

embray commented Mar 27, 2019

To my knowledge the JMol viewer has never worked in the Windows version. There are some plans to remove JMol support completely from Sage. In the meantime using ThreeJS will generally work, although it was some problems, I think, with working in the Jupyter Notebook. For a future release on Windows I want to go ahead and change the default 3D graphics viewer, at least on Windows, to use ThreeJS, and to fix any issues with using it in the Notebook.

@williamstein
Copy link

williamstein commented Mar 27, 2019 via email

@Arnache
Copy link

Arnache commented Nov 14, 2019

I plus the idea to make viewer="threejs" the default for better newbie experience.

@videlec
Copy link
Author

videlec commented Nov 15, 2019

Making threejs the default was done in ticket #22408 which was merged in 9.0.beta0 (see this sage-release thread).

I guess we could close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants