Skip to content Skip to sidebar Skip to footer

Use The Requirejs Module Without Importing It With Node

I want to run a python file from javascript, and have determined the easiest way to do it is to use 'spawn'...however, I need to use require('child_process'). I really need help in

Solution 1:

This won't work on the client-side. But you can achieve what you want by making a request to the server-side to run the specific python code and return the result in the response. Then you can console.log it on the client-side.


Post a Comment for "Use The Requirejs Module Without Importing It With Node"