Skip to content

A small, simple kernel example for Jupyter written in Java

Notifications You must be signed in to change notification settings

dpressel/simple-kernel-java

Repository files navigation

simple-kernel-java

This is a port of https://github.com/dsblank/simple_kernel/ using java, jeromq and jackson. It shows how to build the simplest kernel possible for Jupyter. The simple kernel port (and original) don't really show much interaction, but are useful for how to use ZMQ to make a kernel. I have another project https://github.com/dpressel/simple-kernel-nashorn (a JavaScript kernel using Nashorn) which is almost as simple to write, and shows you how to do something a bit more useful!

Building it

Build the kernel and install it:

dpressel@dpressel:~/dev/work/simple-kernel-java$ ./gradlew build && ./gradlew fatJar
:compileJava
Note: /home/dpressel/dev/work/simple-kernel-java/src/main/java/Message.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:processResources UP-TO-DATE
:classes
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 1.923 secs
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:fatJar

BUILD SUCCESSFUL

Total time: 2.149 secs
dpressel@dpressel:~/dev/work/simple-kernel-java$ ./install_script.sh 

Running it

dpressel@dpressel:~/dev/work$ jupyter-notebook 

Or

dpressel@dpressel:~/dev/work$ jupyter lab

You should see simple-kernel-java in the list of kernels

About

A small, simple kernel example for Jupyter written in Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published