Skip to content
Sign upLog in
← Back to Community

Python in node.js

Profile icon
RowanFromBJC

So I saw a great repl in share that runs python code with JavaScript and node.js. Then I became aware of child_process, a npm module that executes shell scripts. It literally runs python code.py.

Voters
Profile icon
ImperialX2005
Profile icon
RowanFromBJC
Comments
hotnewtop
Profile icon
RayhanADev

lmao gg, that’s a good one!
but did you know, you can run it via a .replit file!
create one and type run = python code.py

Profile icon
RowanFromBJC

@RayhanADev
oh yeah, didn't think of that!

Profile icon
staedtlernorica

How come when i copy and paste this it doesnt work?