33

Where can I find an online interactive console for programming language or api?

2
  • 12
    There is a nice list of such tools by Joel Franusic
    – kuszi
    Jan 17, 2011 at 22:38
  • @kuszi thanks for the link. Your post is definitely the answer May 27, 2011 at 4:27

15 Answers 15

8

@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.

7
2
  • 1
    That 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
  • dead links -- see repl.it instead
    – Andy
    Apr 22, 2012 at 19:33
7

repl.it supports multiple languages including Python, Ruby, Lua, Scheme, CoffeeScript, QBasic, Forth,...the list goes on.

1
  • That Ruby interpreter is off for some reason. a = Time.new produces an error. It does say Beta on the link, but wow.
    – jcollum
    Jul 18, 2012 at 21:18
5

Google has an online interactive shell for Python.

1
  • this shell has some major bugs. I couldn't manipulate an object property inside an object method
    – andho
    Jun 17, 2011 at 16:06
5

Skulpt is a Python implementation in JavaScript. Pretty cool.

3

_Why made one for Ruby

1
  • Why am I getting downvoted here? marxidad just duplicated this information Oct 3, 2008 at 20:22
3

http://www.codepad.org/? It has support for a few languages, including perl, scheme, c/c++, python, lua and more.

2

For Java you could try http://www.javarepl.com (or console version at https://github.com/albertlatacz/java-repl)

1

You can play around with jsScheme for Scheme, but it's a toy and shouldn't replace a console-based interpreter.

1

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.

1

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()
1

http://repl.it/ is a Python in a browser without Java or Silverlight (as well as dozen of other languages compiled to JavaScript).

0

Firebug Lite for Javascript. And, Rainbow 9 was one of the first examples of online REPLs.

0

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.