How to use `RemovedFromDocument()` override in python component

You can use the __enter__ / __exit__ methods when running in SDK mode:

Also, you might consider adding the data to the Grasshopper document instead:

1 Like