Commit Graph
3 Commits
Author SHA1 Message Date
Mel Massadian a9e7331f7d feat: ✨ repl progress 2025-09-07 11:55:06 +00:00
Mel Massadian fead8afdd3 feat: ✨ improved the 'REPL'
it is now backed by a python node.
I'm leveraging litegraph custom widgets in a bit of an hacky way.

The main idea is:

- python endpoints for the editor: to execute, lint, format code live without
  queuing anything, this doesn't support inputs but you can use the
  `IS_LIVE` global variable to conditionally set inputs.
- a backend singleton class that is used to execute both the live and
  "in flow" version.
- a custom widget `CODE_EDITOR` that wraps ACE editor automatically adding
  the needed de/serialization hooks on the node it targets

TLDR this node can be either used as a scratchpad akin to a notebook,
isolated from the graph, or part of the graph and can receive inputs
and produce outputs
2025-09-07 11:55:05 +00:00
Mel Massadian 1e3eb522ac feat: ✨ yet another repl node for comfy
Still unsure how to expose it
2025-09-07 11:55:05 +00:00