Jupyter notebooks
Jupyter notebooks are extremely popular in the Python world, simply because it is great to combine documentation and code in a visually appealing way. Great tool for teaching!
Thanks to the IJava kernel and the JDK 9+ JShell feature, it is possible to run Java within Notebooks without compiling the code now as well.
Installation on Linux#
The following worked on Linux Mint 18.2:
-
create a directory called
weka-notebooks
-
change into the directory and create a Python virtual environment:
-
install Jupyter notebooks and its dependencies:
-
then download the latest IJava release (at time of writing, this was 1.20) into this directory
-
unzip the IJava archive:
-
install the Java kernel into the virtual environment, using the IJava installer:
-
after that, fire up Jupyter using:
-
now you can create new (Java) notebooks!
Installation on Windows (using anaconda)#
- open a command prompt
-
create a new environment using anaconda (e.g., for Python 3.5)
-
activate environment
-
install Jupyter
-
download the latest IJava release (at time of writing, this was 1.20)
- unzip the IJava release (e.g., with your File browser or 7-Zip)
-
change into the directory where you extracted the release, containing the
install.py
, e.g.: -
install the kernel
-
start Jupyter
-
now you can create new (Java) notebooks!