Hello Replit users,
Replit is updating the default run button behavior for Python and Node.js Repls. Python Repls will now use the python3
executable to execute your code and Node.js Repls will use the node
executable.
Wait, it didn’t do that before?
An artifact of Replit’s origins, Python 3 and Node.js Repls’ run button has been configured to use prybar
- which in turn delegates execution to the python3
and nodejs
interpreters. prybar
is a multi-language REPL (that’s read-evaluate-print-loop - Repls running REPLs ) built at Replit. It has enabled the Replit Console to evaluate inputs as if you were in a shell, allowing you to continue to input Python or Node.js code following the execution of your main program.
Originally - this was the only way to run code on Replit! Today, Replit has a world-class editor experience, and using prybar
for “Run” has undesirable consequences. Primarily, prybar
has some subtle differences in behavior, resulting in applications failing under certain circumstances. Finally, this will bring the development experience in Repls parallel to Deployments - where the interpreter for your Repl will be the same as for your Deployment.
Starting this week, the default run configuration for Repls will be the official executable: python3
in the case of Python and node
in the case of Node.js. The Console will continue to be used for viewing program output and entering inputs as prompted by the program.