I am using angular fullstack , a yoeman generator to create a web application. I want to call python scripts from nodejs and these scripts will be giving back some output which will be displayed in html pages. what library should i use? Thanks in advance .
Asked
Active
Viewed 59 times
1 Answers
0
Child Process would be what you want. There's a full documentation in the link I've sent you, it's pretty straight forward.
What you might need to know as a minimum is this:
child_process = require('child_process');
var script = child_process.exec('python script.js',function(err,stdout, stderr) {
if (err) throw err;
console.log("Output: " + stdout);
});;

Andrius
- 5,934
- 20
- 28