Scripts/jkernel

From J Wiki
Jump to: navigation, search

The jkernel is a Jupyter Notebook / J Integration. It is based on the same code as qjide.

 

What's new

Aug 17 2016: You may create interactive jupyter notebooks (see example: Rain_Temperature_Interactive.ipynb)

 

Prerequisites

  • A working J 805 installation

 

Installation

 

Kernel

Copy the directory "jkernel" to your anaconda installation folder:

  • Mac OS X: <anaconda-installation-folder>/lib/python3.6/site-packages/
  • Linux: <anaconda-installation-folder>/lib/python3.6/site-packages/
  • Windows: <anaconda-installation-folder>\Lib\site-packages\

 

Kernel Configuration

  • Edit qjide.cfg to specify your J installation folder
  • Edit qjide.cfg to specify your J binaries folder, especially on Arch Linux, where libj.so goes to /usr/lib/j8/bin

 

Kernel Definition

Copy the directory "jkernel" under <repository>/kernel_definition/ to:

  • Mac OS X: ~/Library/Jupyter/kernels/
  • Linux: ~/.local/share/jupyter/kernels/
  • Windows: %APPDATA%\Roaming\jupyter\kernels\

 

Syntax Highlighting

Copy the file "J.js" under <repository>/syntax/ to:

  • Mac OS X: <anaconda-installation-folder>/lib/python3.6/site-packages/notebook/static/components/codemirror/mode/J/J.js
  • Linux: <anaconda-installation-folder>/lib/python3.6/site-packages/notebook/static/components/codemirror/mode/J/J.js
  • Windows: <anaconda-installation-folder>\Lib\site-packages\notebook\static\components\codemirror\mode\J\J.js

 

Examples

The sub-directory examples contains some examples using Jupyter Notebook with the jkernel.

You may copy the .ipynb files to any location you wish.

Plase copy the sub-directory jupyter_examples to your J user folder.

 

Run

Run: jupyter notebook (from the command line)

Or: Use the anaconda navigator, and start "jupyter notebook"

 

Feedback

Directly to: martin DOT saurer AT bluewin DOT ch

Or via J general mailing list.

 

Screen Shots

Jkernel1.jpg   Jkernel2.jpg   Jkernel3.jpg

 

Downloads

Download jkernel from: github