ComfyUI Node
Notebook → Cell
A ComfyUI node in d2l/Notebook with 2 inputs and 3 outputs.
Notebook → Cell
- input
- result
- plot
- stdout
◄codex = [i ** 2 for i in range(10)]
print("squares:", x)
Result = sum(x)►
Categoryd2l/Notebook
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| code | STRING | x = [i ** 2 for i in range(10)] print("squares:", x) Result = sum(x) | Python source for this cell. Variables persist across cells of the same workflow; assign 'Result' to emit it on the result socket; call Notebook.plot() to capture figures. |
| inputopt | * | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| result | * | — |
| plot | IMAGE | — |
| stdout | STRING | — |