python-interpreter-node icon indicating copy to clipboard operation
python-interpreter-node copied to clipboard

Feature request: provide ability to limit node updates

Open robpridham opened this issue 10 months ago • 0 comments

Hi - great node, thanks for producing it!

I have a feature request. At the moment the Python code is re-evaluated very regularly. It would be preferable if there was an optional 'seed' input and/or other control that limited this, i.e. if the code was only re-evaluated when the seed changes.

I've got a workflow where the prompt is code-generated, and at the moment I can't re-run later stages of the workflow in isolation because it believes the input is constantly changing, invalidating everything.

However I use e.g. random.seed(any1.data) to seed the Python RNG, and feed that a ComfyUI seed, so I'm getting consistent output - it's just that ComfyUI doesn't know that.

robpridham avatar Feb 27 '25 08:02 robpridham