Repository: deepchecks/deepchecks

Issue:
[BUG] If no checks to display in table - should state that
**Describe the bug**
Current status:
![image](https://user-images.githubusercontent.com/33841818/168985579-ebb6945c-9869-4113-b3e9-4f15e840090b.png)
(picture taken from here: https://docs.deepchecks.com/dev/user-guide/tabular/auto_tutorials/plot_phishing_urls.html#understanding-the-checks-results)

**Expected behavior**
Used to have a text instead, recover that text



Discussion:

Resolving patch:
diff --git a/deepchecks/core/serialization/suite_result/widget.py b/deepchecks/core/serialization/suite_result/widget.py
--- a/deepchecks/core/serialization/suite_result/widget.py
+++ b/deepchecks/core/serialization/suite_result/widget.py
@@ -113,7 +113,7 @@ def prepare_conditions_table(
     def prepare_failures_list(self) -> HTML:
         """Prepare failures list widget."""
         return normalize_widget_style(HTML(
-            value=self._html_serializer.prepare_failures_list()
+            value=self._html_serializer.prepare_failures_list() or '<p>No outputs to show.</p>'
         ))
 
     def prepare_results_without_condition(
@@ -148,12 +148,19 @@ def prepare_results_without_condition(
             )
             for it in results
         ]
-        return normalize_widget_style(VBox(children=[
-            HTML(value='<h2>Check Without Conditions Output</h2>'),
-            self.prepare_navigation_for_unconditioned_results(output_id),
-            HTML(value=CommonHtml.light_hr),
-            *join(results_without_conditions, HTML(value=CommonHtml.light_hr))
-        ]))
+        if len(results_without_conditions) > 0:
+            children = (
+                HTML(value='<h2>Check Without Conditions Output</h2>'),
+                self.prepare_navigation_for_unconditioned_results(output_id),
+                HTML(value=CommonHtml.light_hr),
+                *join(results_without_conditions, HTML(value=CommonHtml.light_hr))
+            )
+        else:
+            children = (
+                HTML(value='<p>No outputs to show.</p>'),
+            )
+
+        return normalize_widget_style(VBox(children=children))
 
     def prepare_results_with_condition_and_display(
         self,
@@ -187,16 +194,18 @@ def prepare_results_with_condition_and_display(
             )
             for it in results
         ]
-        output = (
-            join(results_with_condition_and_display, HTML(value=CommonHtml.light_hr))
-            if len(results_with_condition_and_display) > 0
-            else (HTML(value='<p>Nothing to show</p>'),)
-        )
-        return normalize_widget_style(VBox(children=[
-            self.prepare_conditions_table(output_id=output_id),
-            HTML(value='<h2>Check With Conditions Output</h2>'),
-            *output
-        ]))
+
+        if len(results_with_condition_and_display) > 0:
+            children = (
+                self.prepare_conditions_table(output_id=output_id),
+                HTML(value='<h2>Check With Conditions Output</h2>'),
+                *join(results_with_condition_and_display, HTML(value=CommonHtml.light_hr))
+            )
+        else:
+            children = (
+                HTML(value='<p>No outputs to show.</p>'),
+            )
+        return normalize_widget_style(VBox(children=children))
 
     def prepare_navigation_for_unconditioned_results(
         self,


Test patch: