Three line program fails in script editor, R8 Grasshopper

A short script stopped sending output and didn’t print to terminal, so I deleted lines until I was left with a bare minimum - which still doesn’t work. If I add a new Python component to the canvas it does the “Hello Python 3” thing as normal. Why does the edited component fail?

I’m attaching the .gh file, but I doubt if you’ll glean anything from it. After closing and reopening Grasshopper the component works correctly again. (Note: it didn’t work after just resetting the engine.)

Simple fail.gh (5.9 KB)

Rhino 8.30.26082.23001, 2026-03-23

Hmm this is very odd. Nothing really has changed on Rhino 8 in a good while. I tested the file and can not replicate here but please let me know if there is any consistency in this bad behaviour.

Will do.