Playgrounds and REPLs - Squeng/Polyglot GitHub Wiki
Scala's playground is at https://scastie.scala-lang.org/
When Scala is installed directly, it has a REPL that is started with scala
within a shell/terminal (and which may or may not yet be Scala CLI under the hood). In an sbt-based project, one can use the REPL by entering console
(or consoleProject
or consoleQuick
) after having launched sbt in interactive mode, in the context of a (and with access to the) Play project for instance. In both cases, the REPL can be exited with :quit
.
Java's playground is at https://dev.java/playground/
Java has a REPL called JShell that is started with jshell
within a shell/terminal. It can be exited with /exit
.
Python does not seem to have an official playground (but quite a few inofficial ones); instead, Jupyter might be a viable alternative.
Python has two REPLs, one running within a shell/terminal and one called IDLE. Both can be exited with quit()
.