Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There used to be a way to save the 3D scene with the spt.zip extension but is seems currently broken:

sage: img.save('/path/to/file.spt.zip')
AttributeError: 'OutputSceneJmol' object has no attribute 'jmol'

What you can do, if you do not have many plots, is to view them with jmol and then export them in .spt format from the jmol applet : FILE > Export > Write State

click to hide/show revision 2
No.2 Revision

There used to be a way to save the 3D scene with the spt.zip extension but is seems currently broken:

sage: img.save('/path/to/file.spt.zip')
AttributeError: 'OutputSceneJmol' object has no attribute 'jmol'

What you can do, if you do not have many plots, is to view them with jmol and then export them them.

EDIT

  • From the Sage command-line, it is on the top of the window, you can export in .spt format from the jmol applet : FILE > Export > Write State

  • From the Sage notebook, click on the circular arrow (bottom left of the image) to let jmol start, then right click on the image, you will get a menu: with File > Save you can export as a JVXL isosurface, from File > Export, you can export as VRML and X3D 3D models.