Flow variables "set" and "get" in python3 node


Hi guys,

I am trying to use the "context.get()" and "context.set()" in python3 function node and I am getting below error.

global name 'context' is not defined.
your kind help is much appreciated.


What do you mean by 'python3 function node'?
can you provide your flow?


I assume you are using this node: https://flows.nodered.org/node/node-red-contrib-python3-function?

If so, it hasn't been updated in over a year - so will have fallen behind in what functionality it provides compared to the built-in Function node. There are a number of issues open against the node which suggests it isn't being actively maintained. You could try raising an issue, but otherwise, not much else we can do for you.


:thinking: I must have had fumble fingers because when I searched the flows I didn't find any node with 'python3' - I'll bet I typed it wrong :confused: