A Jupyter kernel for Clojure. This will let you run Clojure code from the IPython console and notebook.
- git clone https://github.com/roryk/clojupyter
- cd clojupyter
- make
- make install
This will install a clojupyter executable and a configuration file to tell Jupyter how to use it in ~/.ipython/kernels/clojure.
run the REPL with:
jupyter-console --kernel=clojure
or the notebook with:
jupyter-notebook
and select the Clojure kernel.
Works. See the 'to do' list below, however.
###To Do:
- Shut down cleanly.
- Do syntax checking. It currently returns nil on unbalanced form. Borrow cider-nrepl middleware for this.
- Allow controls from Jupyter, including timeout and what classes of stack frames to show.
- Test (implement?) interrupt handling. Default middleware for interruptible-eval is loaded.
- Implement file load. Use cider-nrepl middleware.
If you submit a pull request that ends up getting merged, we will give you commit access.