How does init_outputs work? Can it be updated dynamically? #130
-
Imagine that I didn't know the number of outputs of a node until the user puts in the input. Is it possible to make the number of outputs dynamic? For a simple example, a node where the user inputs an integer e.g. 5, and the node updates to have 5 outputs. The actual use case is reading a Pandas dataframe and having each of the columns be available as an output of the node. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Did some digging in the source code and it seems like all I need to do is
to create a new output. |
Beta Was this translation helpful? Give feedback.
-
Neat use case! |
Beta Was this translation helpful? Give feedback.
Did some digging in the source code and it seems like all I need to do is
to create a new output.