IPython#

class stereomolgraph.ipython.View2D(height: int = 300, width: int = 300, show_atom_numbers: bool = True, show_h: bool = True, generate_bond_orders: bool = False, dummy_atoms: bool = False, color_planar_bond_changes: bool = False)#

A class to visualize a MolGraph in 2D using RDKit’s MolDraw2DSVG. This class can be used in IPython environments to display the graph as an SVG image.

Parameters:
  • height – Height of the SVG image in pixels

  • width – Width of the SVG image in pixels

  • show_atom_numbers – Whether to show atom numbers in the visualization

  • show_h – Whether to show hydrogen atoms in the visualization

  • generate_bond_orders – Whether to generate bond orders for the visualization using connectivity2bond_orders()

  • dummy_atoms – Whether to include dummy atoms in the visualization

height: int#

Alias for field number 0

width: int#

Alias for field number 1

show_atom_numbers: bool#

Alias for field number 2

show_h: bool#

Alias for field number 3

generate_bond_orders: bool#

Alias for field number 4

dummy_atoms: bool#

Alias for field number 5

color_planar_bond_changes: bool#

Alias for field number 6