diff --git a/python/pyspark/sql/session.py b/python/pyspark/sql/session.py index ad1819b50cd74..c1bf2bd76fb7c 100644 --- a/python/pyspark/sql/session.py +++ b/python/pyspark/sql/session.py @@ -222,7 +222,15 @@ def __init__(self, sparkContext, jsparkSession=None): SparkSession._instantiatedSession = self def _repr_html_(self): - return self.sparkContext._repr_html_() + return """ +
+

SparkSession - {catalogImplementation}

+ {sc_HTML} +
+ """.format( + catalogImplementation=self.conf.get("spark.sql.catalogImplementation"), + sc_HTML=self.sparkContext._repr_html_() + ) @since(2.0) def newSession(self):