https://github.com/dpressel/simple-kernel-java
A small, simple kernel example for Jupyter written in Java
https://github.com/dpressel/simple-kernel-java
java jupyter jupyter-kernels
Last synced: 4 months ago
JSON representation
A small, simple kernel example for Jupyter written in Java
- Host: GitHub
- URL: https://github.com/dpressel/simple-kernel-java
- Owner: dpressel
- Created: 2017-03-07T04:27:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-09T05:34:29.000Z (over 8 years ago)
- Last Synced: 2025-01-03T21:28:14.786Z (6 months ago)
- Topics: java, jupyter, jupyter-kernels
- Language: Java
- Size: 54.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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 itBuild 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
:buildBUILD SUCCESSFUL
Total time: 1.923 secs
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:fatJarBUILD 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