@since(2.0)
def __exit__(self, exc_type, exc_val, exc_tb):
    "\n        Enable 'with SparkSession.builder.(...).getOrCreate() as session: app' syntax.\n\n        Specifically stop the SparkSession on exit of the with block.\n        "
    self.stop()
Enable 'with SparkSession.builder.(...).getOrCreate() as session: app' syntax.

Specifically stop the SparkSession on exit of the with block.
@since(2.0)
def __exit__(self, exc_type, exc_val, exc_tb):
    "\n        Enable 'with SparkSession.builder.(...).getOrCreate() as session: app' syntax.\n\n        Specifically stop the SparkSession on exit of the with block.\n        "
    self.stop()