HyukjinKwon commented on code in PR #37530:
URL: https://github.com/apache/spark/pull/37530#discussion_r946309177


##########
python/pyspark/context.py:
##########
@@ -570,17 +570,22 @@ def applicationId(self) -> str:
         return self._jsc.sc().applicationId()
 
     @property
-    def uiWebUrl(self) -> str:
+    def uiWebUrl(self) -> Optional[str]:
         """Return the URL of the SparkUI instance started by this 
:class:`SparkContext`
 
         .. versionadded:: 2.1.0
 
+        Notes
+        -----
+        When the web ui is disabled ("spark.ui.enabled=False"), it returns 
None.

Review Comment:
   ```suggestion
           When the web ui is disabled, e.g., by ``spark.ui.enabled`` set to 
``False``,
           it returns ``None``.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to