docs: def chimera_view(*molecules):
      """
      Depicts the requested molecules with NGLViewer in a Python notebook.
      This method does not require a headless Chimera build, however.
  
      Parameters
      ----------
      molecules : tuple of chimera.Molecule
          Molecules to display. If none is given, all present molecules
          in Chimera canvas will be displayed.
      """
      try:
          import nglview as nv
      except ImportError:
          raise ImportError('You must install nglview!')
      import chimera
  
      class _ChimeraStructure(nv.Structure):
          def __init__(self, *molecules):
              if not molecules:
                  raise ValueError('Please supply at least one chimera.Molecule.')
              self.ext = "pdb"
              self.params = {}
              self.id = str(id(molecules[0]))
              self.molecules = molecules
  
          def get_structure_string(self):
              s = StringIO()
              chimera.pdbWrite(self.molecules, self.molecules[0].openState.xform, s)
              return s.getvalue()
  
      if not molecules:
          molecules = chimera.openModels.list(modelTypes=[chimera.Molecule])
  
      structure = _ChimeraStructure(*molecules)
      return nv.NGLWidget(structure)