Skip to content

Displayed widgets instances from the same workgraph are not independent #267

Open
@agoscinski

Description

@agoscinski

A notebook of the form
Cell 1

def sleep_and_print(sleep_time, print_statement):
    time.sleep(sleep_time)
    print(print_statement)

wg = WorkGraph('First WG')

wg.add_task(sleep_and_print)
wg

Cell 2

wg.add_task(sleep_and_print)
wg

The widget instance in the cell 1 is affected by the action in cell 2

Workaround use wg.to_hmtl()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions