First of all, thanks everyone to take your time to help. English is not my mature language and I apologize beforehand for that.
I have a node with exec easy sentence: script.md
The code in script.md is:
lxterminal python3 my_script.py
It wouldn't be a problem unless I'm working with opencv dependencies, and I have to see the camera output on the monitor.
If I run the script from terminal, it just works. But through the node-red, I always have the same issue:
(lxterminal:1604): Gtk-WARNING **: cannot open display:
lxterminal is because i'm working in a raspberry pi.
PD: I use node-red because I want to run this script when the device receive a message in a broker/topic. If you have any other suggestion to do that I'll be grateful to learn