11.2.8.4: Using nglview to view molecular structures and trajectories

Construction Guide for LibreTexts 2e · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    11.2.8.4: Using nglview to view molecular structures and trajectories

    The package nglview can be used to generate and render complex molecular visualizations. These can be explored with the mouse by dragging to move the view and scrolling to zoom in/out.

    Because visualizations can quickly become complex, it is recommended to check out the documentation of nglview to get a full grasp of how to use it.

    An example is shown below:

    import nglview as nv
    
    view = nv.show_structure_file(nv.datafiles.PDB)
    view

    This page titled 11.2.8.4: Using nglview to view molecular structures and trajectories was last modified on Tue, 23 Jul 2024 01:45:30 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.