parameters: (self)
docstring: Cleanup any leftovers by the environment
docstring_summary: Cleanup any leftovers by the environment
docstring_tokens: Cleanup any leftovers by the environment
function: def close(self) -> None:
          """
          Cleanup any leftovers by the environment
          """
          if self.viewer is not None:
              self.viewer.close()
              self.viewer = None
function_tokens: def close ( self ) -> None : if self . viewer is not None : self . viewer . close ( ) self . viewer = None