Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Static g3 Viewer

Bake the measured three-body distribution of a single supercell into a self-contained HTML file. The layout mirrors the interactive Jupyter widget but has no live selectors. A fixed colormap and root-bond shell window are baked in, so the file renders identically in any browser.

Usage

cell.export_g3_html("liquid_g3.html")

A fresh G3Distribution is measured on the current atoms using the grid passed to export_g3_html, independent of any cached distribution on the supercell itself. This keeps the embedded JSON small without affecting the main measurement state.

Layout

Parameters

ParameterDefaultDescription
output_pathrequiredFile path for the generated HTML.
r_max10.0Maximum radius of the embedded g3 grid in Å.
r_step0.1Radial bin width in Å.
phi_num_bins45Number of angular bins between 0 and 180°.
background_color"#f7f8f5"CSS colour for the viewer background.
title""Optional text shown at the top of the viewer.
show_progressFalseIf True, show a progress bar during the g3 measurement.

The defaults (50 × 45 bins per triplet channel) keep the JSON footprint around 100 kB for monatomic systems and well under 1 MB for complex oxides.