Repository navigation
Releases
0.1.0
First release of groovy-jupyter, a Jupyter kernel for Apache Groovy. It ships with Groovy 6.0.1 and needs JDK 17+ (JDK 25 recommended).
Install
You need Jupyter and a JDK 17+ java on the PATH. Download groovy-jupyter-kernelspec-0.1.0.zip below, then:
unzip groovy-jupyter-kernelspec-0.1.0.zip
jupyter kernelspec install groovy-jupyter-kernelspec-0.1.0 --user --name groovy
Pick "Groovy 6.0.1" as the kernel, or run jupyter console --kernel groovy. SHA256SUMS has the zip's checksum. To try it without installing, use Binder.
The kernel jar is also on Maven Central as io.github.paulk-asert:groovy-jupyter:0.1.0, e.g. for embedding. To use the kernel, you only need the zip.
Highlights
- Variables, classes, methods and imports persist across cells
- Dependencies via
@Grab, on Groovy 6's maven-resolver engine List<Map>rows, maps and GINQ results show as HTML tables;groovy-ginqandgroovy-csvare includeddisplaySvg,displayPng,displayHtml,displayMarkdownanddisplayVegaLite, with in-place updates- SVG is also sent as PNG, so plots show in untrusted notebooks
- Libraries can register their own renderers just by being grabbed
- Interrupts for running cells, power-assert error rendering, member completion and stdin
- Unix domain socket (
ipc://) transport, as used by hosted Google Colab - Eleven example notebooks and a BeakerX migration guide
JDKs for the example notebooks
The kernel runs on JDK 17+, but some libraries need a newer one and fail with UnsupportedClassVersionError on older JDKs:
| Notebooks | JDK |
|---|---|
iris, houseprices, whisky, whisky-matrix (Smile 7) |
25+ |
iris-jitnn, whisky-jitnn (jitNN) |
22+ |
spark |
17, 21 or 25 |
See Choosing a JDK for how to pin one. Some notebooks (Spark, jitNN) also need or benefit from extra JVM flags, which they document.
Known limitations
- Interrupts are cooperative: loops inside third-party jars can't be stopped, so restart the kernel
- Tuple declarations (
def (a, b) = ...) stay local to their cell - Completion doesn't chain through expressions
- There are no
%magics; use@Grabfor dependencies - GitHub and nbviewer don't render Vega-Lite charts
Full Changelog: https://github.com/paulk-asert/groovy-jupyter/commits/v0.1.0