I am trying to update the python script node with additional code. I did click on Run all and check if my updated code works, and it does. However, for some reason, I am unable to save the python code. In the attached screenshot, you can see that the execution is successful but the “Ok” button on the bottom right corner is faded out/not clickable.
I ran into something similar before, and in my case, the issue was that the Python Script node didn’t detect the changes as a real update. Have you tried making a small edit outside the script, like changing a node setting or reconnecting a flow variable, before saving? Sometimes that forces Knime to recognize the update
also, are you running this in a local workspace or on a server? If it’s on a server, permissions could be blocking the save. Another thing to check, does the issue persist if you copy the node, paste a new one, and try editing that instead? Sounds weird, but it worked for me once when Knime got stuck on an old state
My python script node was part of a component. When I brought the script out of the component, I was able to edit. It still doesn’t make sense on why within the component when we edit python it is not letting us save. But for now, without component the python script edit/save works.