API NGLView#

add_arrows(view[, origin, end, vectors, ...])

Adding 3D arrows between start and end coordinate points in NGLWidget.

add_contacts(view[, selection, ...])

Adding visual contact lines or cylinders between atom pairs in NGLWidget.

add_cylinders(view[, bottom, top, vectors, ...])

Adding 3D cylinders connecting coordinates or atom pairs in NGLWidget.

add_hbonds(view, hbonds[, selection, ...])

Adding hydrogen bond interaction cylinders in NGLWidget.

clear(view[, skip_digestion])

Clearing all visual representations and components from an NGLWidget viewer.

load_html_in_jupyter_notebook(filename)

Loading and rendering a standalone HTML viewer file inside a Jupyter Notebook.

set_color_by_value(view, values[, element, ...])

Adding a new representation colored by a color scale.

set_color(view, color[, selection, syntax])

Setting uniform or custom color on representations in NGLWidget.

show_as_balls_and_sticks(view[, selection, ...])

Adding ball-and-stick representation for selected elements in NGLWidget.

show_as_cartoon(view[, selection, color, ...])

Adding or configuring cartoon representation for selected elements in NGLWidget.

show_as_licorice(view[, selection, ...])

Adding licorice (stick) representation for selected elements in NGLWidget.

show_as_surface(view[, selection, opacity, ...])

Adding surface representation for selected elements in NGLWidget.

show_gui(view)

Toggling or showing the interactive graphical user interface controls in NGLWidget.

standardize_view(view[, atom_indices, ...])

Applying standardized camera perspective and background rendering settings to an NGLWidget view.

write_html(view, output_filename)

Exporting an interactive 3D scene from NGLWidget to a standalone HTML file.