I want to make sure it is not possible to run shell commands, or python scripts when n8n is not self hosted.
Thanks
I want to make sure it is not possible to run shell commands, or python scripts when n8n is not self hosted.
Thanks
@Itamar_Bavli typically you can exclude nodes on selfhost, but not sure how or if this is possiable on normal cloud maybe on enterprise cloud. Do you mean useing the code node and exe node in n8n?
Samuel
I have several Python scripts that I want to run directly from the server. On my local laptop, I’m using Docker with n8n, and within the Dockerfile I’ve included the necessary Python packages. I’m currently using the command node in n8n.
However, I don’t think the code node is suitable for running these types of Python scripts, as they rely heavily on the requests module and involve data parsing.
Potently, I could run serval http requests and use n8n to parse this data, but I really want to keep it this native python scripts, also, might want to save some json files, to be stored.
so the code node uses Code node documentation | n8n Docs pyodide which has limits, so yes command node is probably best, if you don’t want to setup the workflow in n8n, this is fine, and tbh you can call the json via file nodes later in that same workflow if you’d like, or another. Just make sure to store under the n8n profile path.
I think your on track, if you have any issues feel free to reach out.
@Itamar_Bavli
Samuel
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.