Skip to content

Commit

Permalink
Jupyter Lab compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-saurer committed Apr 22, 2019
1 parent 452c794 commit c8ba5cc
Show file tree
Hide file tree
Showing 24 changed files with 235 additions and 47,147 deletions.
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

1,251 changes: 0 additions & 1,251 deletions Jupyter_Notebook_J_Examples/TfIdf_Cosine_Similarity.ipynb

This file was deleted.

Empty file modified LICENSE
100644 → 100755
Empty file.
62 changes: 16 additions & 46 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,65 +1,35 @@
# jkernel
# Jupyter Notebook jkernel

The jkernel is a Jupyter Notebook / J Integration.

It is based on the same code as [qjide](http://www.github.com/martin-saurer/qjide).
The jkernel is a J programming language integration for the [Jupyter Notebook](http://jupyter.org).

## Prerequisites

* [Jupyter Notebook](http://jupyter.org) Version 4.0.6 (or greater). Recommended: [Anaconda from Continuum Analytics](https://www.continuum.io/downloads)

* A working [J 804](http://www.jsoftware.com) installation

## Installation

### Kernel

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

* Mac OS X: \<anaconda-installation-folder\>/lib/python3.5/site-packages/

* Linux: \<anaconda-installation-folder\>/lib/python3.5/site-packages/

* Windows: \<anaconda-installation-folder\>\\Lib\\site-packages\\

### Kernel Configuration
* [Jupyter Notebook](http://jupyter.org) Version 4.x (or greater).

* Edit qjide.cfg to specify your J installation folder
* Recommended: [Anaconda from Anaconda Inc.](https://www.anaconda.com/downloads)

* Edit qjide.cfg to specify your J binaries folder, especially on Arch Linux, where libj.so goes to /usr/lib/j8/bin
* Or: [Miniconda](https://conda.io/miniconda.html) (Jupyter must be installed manually)

### Kernel Definition
* A working [J 807](http://www.jsoftware.com) (or greater) (successfully tested on J807 + J901beta) installation

Copy the directory "jkernel" under \<repository\>/kernel_definition/ to:
## Installation / Uninstallation / Installation Check

* Mac OS X: \<anaconda-installation-folder\>/share/jupyter/kernels/
* python setup<span></span>.py **install**

* Linux: \<anaconda-installation-folder\>/share/jupyter/kernels/
* python setup<span></span>.py **uninstall**

* Windows: \<anaconda-installation-folder\>\\share\\jupyter\\kernels\\
* python setup<span></span>.py **check**

### Syntax Highlighting
## Examples

Copy the file "J.js" under \<repository\>/syntax/ to:
The sub-directories **Jupyter_Notebook_J_Labs** and **Jupyter_Notebook_J_Examples** contain some example notebooks.

* Mac OS X: \<anaconda-installation-folder\>/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/J/J.js


* Linux: \<anaconda-installation-folder\>/lib/python3.5/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.
The sub-directory **Jupyter_Notebook_J_Example_Data** should be copied to the J user directory to run the example notebooks in **Jupyter_Notebook_J_Examples**.

## Run

Run: **jupyter notebook** (from the command line)

Or: Use the anaconda launcher, and start "ipython-notebook"
Run: **jupyter lab** (from the command line)

Or: Use the anaconda launcher, and start **ipython-notebook**
219 changes: 0 additions & 219 deletions examples/Compare_Bitmap_Images.ipynb

This file was deleted.

9,333 changes: 0 additions & 9,333 deletions examples/Rain_Temperature.ipynb

This file was deleted.

8,236 changes: 0 additions & 8,236 deletions examples/Rain_Temperature_Interactive.ipynb

This file was deleted.

204 changes: 0 additions & 204 deletions examples/Resize_Bitmap_Images.ipynb

This file was deleted.

253 changes: 0 additions & 253 deletions examples/Steganography.ipynb

This file was deleted.

Loading

0 comments on commit c8ba5cc

Please sign in to comment.