ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 03 Feb 2019 21:59:20 +0100jsmol problem in Sagemath/Jupyter notebookshttps://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/ Whenevr plotting 3d functions I get:
Interactive 3D plots using the default viewer do not work in SageNB, because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation. You have the following alternative options:
View an interactive WebGL-based plot by giving the option viewer='threejs'. This should work out-of-the box on Firefox, but may require you to adjust some settings in Chromium - see chrome://flags for options and chrome://gpu for status. In both cases, the functionality also depends on your graphics hardware and drivers, but support should exist in most cases.
View a less sophisticated interactive plot that does not require WebGL, by giving the option viewer='canvas3d'.
View a non-interactive plot by giving the option viewer='tachyon'.
Use the default viewer (Jmol) from the SageMath command-line interface, instead of the notebook.
I can use threejs for everything except plotting vector fields. Is there any way to get Jsmol working on a debian system?
I've found nothing on google that would help.Sun, 03 Feb 2019 00:07:02 +0100https://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/Answer by tmonteil for <p>Whenevr plotting 3d functions I get:</p>
<p>Interactive 3D plots using the default viewer do not work in SageNB, because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation. You have the following alternative options:
View an interactive WebGL-based plot by giving the option viewer='threejs'. This should work out-of-the box on Firefox, but may require you to adjust some settings in Chromium - see chrome://flags for options and chrome://gpu for status. In both cases, the functionality also depends on your graphics hardware and drivers, but support should exist in most cases.
View a less sophisticated interactive plot that does not require WebGL, by giving the option viewer='canvas3d'.
View a non-interactive plot by giving the option viewer='tachyon'.
Use the default viewer (Jmol) from the SageMath command-line interface, instead of the notebook.</p>
<p>I can use threejs for everything except plotting vector fields. Is there any way to get Jsmol working on a debian system?
I've found nothing on google that would help.</p>
https://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/?answer=45280#post-id-45280The easiest way in your settings is definitely to compile Sage by yourself, so that jsmol will be installed as a standard package. On Debian-like systems, it is pretty straightforward, see the doc at : https://doc.sagemath.org/html/en/installation/source.html The source code of Sage can be downloaded at https://www.sagemath.org/download-source.htmlSun, 03 Feb 2019 10:06:08 +0100https://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/?answer=45280#post-id-45280Answer by eric_g for <p>Whenevr plotting 3d functions I get:</p>
<p>Interactive 3D plots using the default viewer do not work in SageNB, because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation. You have the following alternative options:
View an interactive WebGL-based plot by giving the option viewer='threejs'. This should work out-of-the box on Firefox, but may require you to adjust some settings in Chromium - see chrome://flags for options and chrome://gpu for status. In both cases, the functionality also depends on your graphics hardware and drivers, but support should exist in most cases.
View a less sophisticated interactive plot that does not require WebGL, by giving the option viewer='canvas3d'.
View a non-interactive plot by giving the option viewer='tachyon'.
Use the default viewer (Jmol) from the SageMath command-line interface, instead of the notebook.</p>
<p>I can use threejs for everything except plotting vector fields. Is there any way to get Jsmol working on a debian system?
I've found nothing on google that would help.</p>
https://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/?answer=45296#post-id-45296Regarding vector fields, you can use threejs via the method `plot` of vector fields on the Euclidean space:
E.<x,y,z> = EuclideanSpace()
v = E.vector_field((x*cos(z), -y*cos(z), sin(z)))
v.plot(max_range=pi/2, viewer='threejs')
See [here](http://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/vectorfield.html#sage.manifolds.differentiable.vectorfield.VectorField.plot) for more details.Sun, 03 Feb 2019 21:59:20 +0100https://ask.sagemath.org/question/45277/jsmol-problem-in-sagemathjupyter-notebooks/?answer=45296#post-id-45296