Skip to content
@jupyter-java

Jupyter for Java

Info on how to use java with Jupyter notebooks

Jupyter Java

badge.svg?url=https%3A%2F%2Fgithub.com%2Fjupyter java%2F

Welcome to Jupyter Java, a GitHub organization created to simplify the discovery of various ways to use Java with Jupyter notebooks. We’re not here to start a Java vs Python debate, we’re all about the love of coding, regardless of the language! So, let’s keep it light-hearted and fun.

We provide JBang scripts to set up and install various Jupyter kernels, along with Docker images for easy execution in various Jupyter environments. Enjoy exploring!

Installing Jupyter Kernels locally

The simplest way to run Java based Jupyter kernels is to install JBang and run the following:

jbang install-kernel@jupyter-java

It will install a default Java kernel (currently IJava) which is then available locally on your computer. This can then be used in your local Jupyter install or via editors that support jupyter notebook such as vscode, intellij etc.

Installing in online Jupyter notebooks

The great thing about this JBang driven approach is that it makes it accessible to install in many online Jupyter notebooks too.

!pip install jbang
import jbang
jbang.exec("trust add https://github.com/jupyter-java")
jbang.exec("install-kernel@jupyter-java")

Once this has executed successfully you should be able to change the kernel/runtime in your Jupyter notebook.

Note
JBang will automatically use local Java or download a JDK if needed. This makes these steps all you need to do to get started with Java based kernels in any common Jupyter notebooks or IDE.

We’ve successfully tested this on the following online Jupyter notebooks:

…​and on the following Visual Studio based IDE’s (requires install of Jupyter extension):

Available Kernels

The following Java related Kernels are available:

You install them by passing their name as first argument. i.e. to install Kotlin do: install-kernel@jupyter-java kotlin

Awesome Jupyter Java

We’ve started an awesome list of Jupyter Java content, please feel free to contribute!

The logo was generated by ChatGPT.

jupyter java

"Here is a logo for your GitHub organization, "Jupyter-Java". It’s designed to represent the integration of Java programming with Jupyter Notebooks, featuring elements that symbolize coding and data science."

Trademarks

Please note that "Jupyter" and "Java" are trademarks owned by their respective owners. This project is not endorsed by or affiliated with the owners of these trademarks.

Pinned Loading

  1. awesome-jupyter-java awesome-jupyter-java Public

    Awesome resources around using Jupyter with Java

    17 1

  2. jbang-catalog jbang-catalog Public

    Catalog for aliases to use with JBang

    Java 5 3

Repositories

Showing 5 of 5 repositories
  • awesome-jupyter-java Public

    Awesome resources around using Jupyter with Java

    jupyter-java/awesome-jupyter-java’s past year of commit activity
    17 CC0-1.0 1 0 0 Updated Oct 7, 2024
  • jbang-catalog Public

    Catalog for aliases to use with JBang

    jupyter-java/jbang-catalog’s past year of commit activity
    Java 5 Apache-2.0 3 1 1 Updated Sep 2, 2024
  • anywhere Public

    Jupyter Notebook example that makes Java work anywhere

    jupyter-java/anywhere’s past year of commit activity
    Jupyter Notebook 7 1 0 0 Updated Dec 5, 2023
  • .github Public
    jupyter-java/.github’s past year of commit activity
    0 1 0 0 Updated Nov 27, 2023
  • jupyter-java-binder Public

    mybinder compatible repo with java jupyter kernels

    jupyter-java/jupyter-java-binder’s past year of commit activity
    Jupyter Notebook 0 0 0 0 Updated Nov 15, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Most used topics

Loading…