PYTHON API
Python documentation
Explore Python guides, examples, and the complete COSMol Viewer API reference.
Search Python documentationInstallation
Install COSMol Viewer and verify the Python package.
Open section>
Quick Start
Render your first molecule and open an interactive viewer.
Open section>
Scenes and Cameras
Compose geometry, frame the camera, and configure lighting.
Open section>
Molecules
Style molecules as balls and sticks, sticks, or spheres.
Open section>
Protein Structures
Render protein ribbons and solvent surfaces.
Open section>
Geometry
Add spheres, sticks, colors, and materials to a scene.
Open section>
Rendering and Export
Export PNGs and display images in notebooks.
Open section>
Viewers and Animation
Open interactive canvases and play molecular trajectories.
Open section>
Rust API
Use the shared renderer from native Rust applications.
Open section>
API Reference
Browse the generated Python classes, methods, and defaults.
Open section>
COSMol Viewer Docs
Loading documentation