g = arrow((0,0,1), (5,5,5))
show(g)
h = arrow((0,0,1), (5,5,5), color=(1,0,0))
show(h)
It is a featured bug... There is only one instance of JSMol that SageMathCell is using, so if you try to show multiple scenes, they conflict in a not quite predictable way. A fix is to use threejs:show(cube(), viewer="threejs")
show(sphere(), viewer="threejs")
My current viewpoint is that improving JSMol handling is a waste of time as it is tricky and it is likely to be gone sooner or later. Past experience shows that later is more likely, but threejs is available already if you can deal with its own issues (if you can't - please fix them ;-)). I have stopped using JMol/JSMol many years ago even though I like the quality of its pictures when they do work.
I agree. I think we should switch to threejs at a point when threejs in sage is mature enough, even though not perfect...
On Sunday, 11 November 2018 17:23:57 UTC-7, Kwankyu Lee wrote:I agree. I think we should switch to threejs at a point when threejs in sage is mature enough, even though not perfect...That was my plan, but I dislike when code copied between different interfaces behaves substantially differently, which is the case if you switch between Jmol and threejs. Given that it is possible to use threejs now explicitly, I think it is better to do that than alter defaults for SageMathCell compared to "plain Sage".