An Interactive Clojure repl, inspired by IPython.
Eclipse Public License (EPL), same as Clojure.
curl -O -L http://clk.tc/iclojure-latest.jar
java -jar iclojure-latest.jar
Alternatively, you can download the following script, mark it executable and put it somewhere in path
curl -O https://raw.github.com/cosmin/IClojure/master/bin/iclojure
chmod +x iclojure
sudo mv iclojure /usr/local/bin
Then you can simply launch iclojure at any time.
git checkout https://github.com/cosmin/IClojure
cd IClojure
bin/run.sh
mvn clean package
- Tab completion, based on http://github.com/ninjudd/clojure-complete, itself based on swank-clojure.
- Shorthand for source and doc
- Shorthand for introspecting Java objects and classes via reflection
- Proper Control-C handling, although not very portable
- persist history across sessions to ~/.iclojure_history
- variable
- method invocations
- "(.method" completion for all java methods for any of the classes in the current namespace
- "(. object method" completion for all the methods of the object (or a form that evaluates to an object)
- namespaces
- java classes
?symbol => (doc symbol)
??symbol => (source symbol)
%d symbol => show constructors, methods and fields of the given object or Class
- input caching, similar to IPython
- output caching, similar to IPython
- tab completion for import, require and use forms
- abort long runing tasks with Ctrl+C
- better stack traces
- find class by name (to know what to import)