aiidateam / aiida-workgraph

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
https://aiida-workgraph.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

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

Open agoscinski opened 2 weeks ago

agoscinski commented 2 weeks ago

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()