draw.orient_page()

Make the web page for orienting a geometry in the browser.

Usage

Source

draw.orient_page(geo)

Parameters

geo: Geometry
Geometry.

Returns

str

HTML for a page with a py3Dmol viewer and a “Done” button, which posts

the view quaternion [qx, qy, qz, qw] as JSON to /done.