diff --git a/preswald/__init__.py b/preswald/__init__.py index 0257c31..b4c3400 100644 --- a/preswald/__init__.py +++ b/preswald/__init__.py @@ -14,6 +14,7 @@ image, plotly, workflow_dag, + separator, ) from .data import view, query, summary, save, load from .state import Workflow, RetryPolicy, WorkflowAnalyzer diff --git a/preswald/components.py b/preswald/components.py index 567feb8..59f474f 100644 --- a/preswald/components.py +++ b/preswald/components.py @@ -472,4 +472,11 @@ def workflow_dag(workflow, title="Workflow Dependency Graph"): "error": f"Failed to create DAG visualization: {str(e)}" } _rendered_html.append(error_component) - return error_component \ No newline at end of file + return error_component + +# Add separator component function +def separator(): + """Create a separator component that forces a new row.""" + component = {"type": "separator", "id": str(uuid.uuid4())} + _rendered_html.append(component) + return component \ No newline at end of file diff --git a/preswald/core.py b/preswald/core.py index 469086a..14b2447 100644 --- a/preswald/core.py +++ b/preswald/core.py @@ -1,6 +1,5 @@ from typing import Dict, Any, Callable, List import logging -import uuid import threading import asyncio import time @@ -279,9 +278,4 @@ def get_rendered_components(): return {"rows": rows} -# Add separator component function -def separator(): - """Create a separator component that forces a new row.""" - component = {"type": "separator", "id": str(uuid.uuid4())} - _rendered_html.append(component) - return component +