This Repo has some templates that will allow you to run Clojure code on Google Colaboratory It uses IClojure as the Jupyter kernel
This is a two step process, there is no automated way to do this so far. The first step is to install the Clojure kernel. The next step is to upload a notebook and connect to the kernel runtime.
install_iclojure.ipynb
directly or use this github linkAvailable kernels:
iclojure /root/.local/share/jupyter/kernels/iclojure
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
swift /usr/local/share/jupyter/kernels/swift
iclojure_with_deps_example.ipynb
. Make sure you do not reset your runtime
.(+ 1 1)
. It should connect to the IClojure kernel and execute./cp
If you want to do an MXNet example, you can use a similar process above using these two notebooks: