Where can I find an online interactive console for programming language or api?
15 Answers
@kuszi Put a great answer as a comment to the question, but I almost missed it because it was a comment rather than the answer.
This link goes to a huuuge list of REPs and REPLs for tons of languages.
-
1That online Python interpreter is basically worthless for learning Python. You can't define your own functions or classes, so it's not going to be much use to anyone. Sep 8, 2008 at 3:38
-
Google has an online interactive shell for Python.
-
this shell has some major bugs. I couldn't manipulate an object property inside an object method– andhoJun 17, 2011 at 16:06
-
Why am I getting downvoted here? marxidad just duplicated this information Oct 3, 2008 at 20:22
http://www.codepad.org/? It has support for a few languages, including perl, scheme, c/c++, python, lua and more.
For Java you could try http://www.javarepl.com (or console version at https://github.com/albertlatacz/java-repl)
You can play around with jsScheme for Scheme, but it's a toy and shouldn't replace a console-based interpreter.
Google Chrome Python shell https://chrome.google.com/extensions/detail/gdiimmpmdoofmahingpgabiikimjgcia
You can try this http://doc.pyschools.com/console. It is actually an editor, and is good for testing your python code online when you do not have it installed on your computer.
python web console, and I was able to run the code below
# Script text here
import itertools
g = itertools.chain("AB", range(2))
print g.next()
print g.next()
print g.next()
print g.next()
http://repl.it/ is a Python in a browser without Java or Silverlight (as well as dozen of other languages compiled to JavaScript).
Firebug Lite for Javascript. And, Rainbow 9 was one of the first examples of online REPLs.
http://lotrepls.appspot.com/ is a console that works reasonably well for all these scripting languages:
- python
- ruby
- groovy
- beanshell
- clojure
- javascript
- scala
- scheme
Just hit CTRL+SPACE to switch languages or use the metacommand '/switch', for example '/switch clojure' to start coding in clojure.