@@ -621,14 +621,25 @@ def remove_queue_remaining_callback(self, callback: Callable[[int], None]):
621621 if callback in self ._queue_remaining_callbacks :
622622 self ._queue_remaining_callbacks .remove (callback )
623623
624- def watch_display (self , display_node : bool = True , display_task : bool = True , display_node_preview : bool = True ):
624+ def watch_display (self , all : bool | None = None , * , preview : bool | None = None , output : bool | None = None , task : bool | None = None ):
625625 '''
626- - `display_node`: When an output node is finished, display its result.
627- - `display_task`: When a task is finished (all output nodes are finished), display all the results.
626+ - `preview`: When a preview of the node output is received, display it.
627+ - `output`: When an output node is finished, display its result.
628+ - `task`: When a task is finished (all output nodes are finished), display all the results.
628629 '''
629- self ._watch_display_node = display_node
630- self ._watch_display_task = display_task
631- self ._watch_display_node_preview = display_node_preview
630+ if all is not None :
631+ if preview is None :
632+ preview = all
633+ if output is None :
634+ output = all
635+ if task is None :
636+ task = all
637+ if preview is not None :
638+ self ._watch_display_node_preview = preview
639+ if output is not None :
640+ self ._watch_display_node = output
641+ if task is not None :
642+ self ._watch_display_task = task
632643
633644 async def _put (self , workflow : data .NodeOutput | Iterable [data .NodeOutput ] | Workflow , source = None ) -> Task | None :
634645 global _client_id
0 commit comments