Scene

class marxs.visualization.x3d.Scene(children=None, class_='', id_='', style_='')[source] [edit on github]

Bases: Scene

X3D Scene with added _repr_html_ for notebook output

Attributes Summary

css_source

dimension_px

js_source

Methods Summary

write_html_archive(base_name, format, *args, ...)

Write to an HTML archive with local copies of js and css requirements.

Attributes Documentation

css_source = 'https://www.x3dom.org/download/x3dom.css'
dimension_px = (600, 400)
js_source = 'https://www.x3dom.org/download/x3dom.js'

Methods Documentation

write_html_archive(base_name: str, format: str, *args, **kwargs) None[source] [edit on github]

Write to an HTML archive with local copies of js and css requirements.

This zip file can be shared with others and opened in a web browser. In particular, it can be used for journal submission for journals that accept interactive js-based content such as ApJ or AJ.

Parameters:
base_namestr

Name of the file to create, including the path, minus any format-specific extension.

format{“zip”, “tar”, “gztar”, “bztar”, “xztar”}

The archive format, see shutil.make_archive for details.

*argstuple

Other arguments are passed to shutil.make_archive.

**kwargsdict, optional

Other keyword arguments are passed to shutil.make_archive