view3D#

view3D(molecule, label_idx=False, label_symbol=False, kekulize=True)[source]#

Format 3D view of an RDKit molecule.

Parameters:
  • molecule (rdkit.Chem.rdchem.Mol) – RDKit molecule to be viewed.

  • label_idx (bool, optional) – If True, atom indices will be displayed as labels. Default is False.

  • label_symbol (bool, optional) – If True, atom symbol will be displayed as labels. Default is False.

  • kekulize (bool, optional) – If True, kekulize the molecule before rendering. Default is True.

Returns:

3Dmol.js view object for visualization.

Return type:

py3Dmol.view