diff --git a/packages/syft/src/syft/service/api/api.py b/packages/syft/src/syft/service/api/api.py index 7166bc8889b..e596e6bc87c 100644 --- a/packages/syft/src/syft/service/api/api.py +++ b/packages/syft/src/syft/service/api/api.py @@ -112,12 +112,16 @@ def _coll_repr_(self) -> dict[str, Any]: for node in ast.walk(private_parsed_code) if isinstance(node, ast.FunctionDef) ][0] + worker_pool = "UNSET (DEFAULT)" + if self.worker_pool is not None: + worker_pool = self.worker_pool return { "API path": self.path, "Signature": self.path + str(self.signature), "Access": self.access, "Mock Function": mock_function_name, "Private Function": private_function_name, + "Worker Pool": worker_pool, } diff --git a/packages/syft/src/syft/service/job/html_template.py b/packages/syft/src/syft/service/job/html_template.py index 7172ae285e8..cc0b0f7f74b 100644 --- a/packages/syft/src/syft/service/job/html_template.py +++ b/packages/syft/src/syft/service/job/html_template.py @@ -1,5 +1,6 @@ # relative from ...util.notebook_ui.notebook_addons import CSS_CODE +from ...util.notebook_ui.notebook_addons import JS_DOWNLOAD_FONTS type_html = """
${logs_lines_html} +
""" @@ -120,20 +122,21 @@ """ LIST_CSS = """ - ul { + +""" result_html = """
@@ -166,17 +171,46 @@ """ job_repr_template = f""" - - - {header_line_html} - {attrs_html} - {tabs_html} - {result_html} - {logs_html} - {onclick_html} -
+ +
+ + +{JS_DOWNLOAD_FONTS} + + + +{CSS_CODE} + + + +{LIST_CSS} + + + +{header_line_html} + + + +{attrs_html} + + + +{tabs_html} + + + +{result_html} + + + +{logs_html} + + + +{onclick_html} + + +
+
+ """ diff --git a/packages/syft/src/syft/util/notebook_ui/components/sync.py b/packages/syft/src/syft/util/notebook_ui/components/sync.py index 87aa03f67a0..ac48bf72c5c 100644 --- a/packages/syft/src/syft/util/notebook_ui/components/sync.py +++ b/packages/syft/src/syft/util/notebook_ui/components/sync.py @@ -262,7 +262,7 @@ def to_html(self) -> str: third_line_html = f"This would sync {num_diffs} changes from {source_side} Node to {target_side} Node" # noqa: E501 header_html = f""" - + {style} {first_line_html} {second_line_html} {third_line_html} diff --git a/packages/syft/src/syft/util/notebook_ui/notebook_addons.py b/packages/syft/src/syft/util/notebook_ui/notebook_addons.py index be55c112682..0e669448e2f 100644 --- a/packages/syft/src/syft/util/notebook_ui/notebook_addons.py +++ b/packages/syft/src/syft/util/notebook_ui/notebook_addons.py @@ -35,14 +35,14 @@ CSS = """