Keywords: viewmol

# 10 Programming VIEWMOL with Python

VIEWMOL can be programmed using Python. The Python interpreter embedded in VIEWMOL has been extended by the modules:

- `atom`
- `element`
- `energylevel`
- `history`
- `label`
- `light`
- `molecule`
- `spectrum`
- `viewmol`

which allow Python programs access to VIEWMOL's internal data model and functions. Each module provides a number of functions for use in Python programs.

Subsections

- 10.1 The `atom` module
- 10.2 The `element` module
- 10.3 The `energylevel` module
- 10.4 The `history` module
- 10.5 The `label` module
- 10.6 The `light` module
- 10.7 The `molecule` module
- 10.8 The `spectrum` module
- 10.9 The `viewmol` module
- 10.10 Installing Python scripts in the ``Run script" menu