Is there a java kernel for "Jupyter"? I'm using Mac OS El Capitan.
I tried https://github.com/Bachmann1234/java9_kernel but to no avail.
A Jupyter kernel for executing Java code. The kernel executes code via the new JShell tool. Some of the additional commands should be supported as needed via a syntax similar to the ipython magics.
5.1 Language support: kernels The Jupyter system supports over 100 programming languages (called “kernels” in the Jupyter ecosystem) including Python, Java, R, Julia, Matlab, Octave, Scheme, Processing, Scala, and many more.
There are a number of options, many listed on the official Jupyter kernel list:
The scijava-jupyter-kernel supports Java for Jupyter
scijava-jupyter-kernel aims to be a polyglot Jupyter kernel. It uses the Scijava scripting languages to execute the code in Jupyter client and it's possible to use different languages in the same notebook. Some of the supported languages are Groovy (default), Python, Beanshell, Clojure, Java, Javascript, Ruby and Scala. The kernel has been originally created to work with ImageJ. See here for more details. Under the hood scijava-jupyter-kernel uses the Beaker base kernel.
BeakerX extensions for Jupyter come with Java cell support.
BeakerX contains and depends on many projects including: The kernel is originally derived from lappsgrid, but has been rewritten in Java and refactored and expanded. The Java support uses Adrian Witas' org.abstractmeta.toolbox.
Updated:
IJava, a Jupyter kernel for executing Java code.
The kernel executes code via the new JShell tool. Some of the additional commands should be supported in the future via a syntax similar to the ipython magics. The kernel is fully functional. [...] If you are interested in building your own kernel that runs on the JVM check out the related project that this kernel is build on, jupyter-jvm-basekernel.
You may also be interested in:
I know this is a shameless plug, but I think it's important to actually state that at this point there is no Java kernel for Jupyter. You can see the list of available kernels here in case you think that might have changed when you are reading this.
===== update =====
There is now a new solution that may be relevant here called IJava.
Try IJava kernel for Jupyter. This Kernel works only with Java 9 or above. I have using this for some time now with Java 10 on windows. It is working fine, have not noticed any issues so far.
However if you have scijava-jupyter-kernel , IJava karnel will fail to start. As scijava-jupyter-kernel is dependent on OpenJdk 8. And IJava is compiled with JDK9.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With