Skip to content

Conversation

@sfinktah
Copy link
Contributor

@sfinktah sfinktah commented Oct 18, 2025

If you'll accept LLM generated code. Even with an LLM doing the heavy lifting it wasn't straight-forward.

There is still one "bug": it retains that coffee flavored _return without using the return keyword` that puter already had.

image

Otherwise, it works inside the same node as where it is defined, or passed as an argument to another node. *args and **kwargs work correctly.

FTR it's not that I thought you particulary needed user definable functions, it's because I converted a python based underscore.js library into ComfyUI Nodes, which turned out to be rather pointless without functions to connect them too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant