Jupyter Notebook with Lisp kernel

Installing Jupyter Notebook with Lisp kernel on Ubuntu on VirtualBox.

Ubuntu in Virtual Box

NAT port forwarding.

Set 2222 to 22 for normal remote connection.

Set 888 to 8888 for jupyter notebook.

You can log the tcp transfers in port 22 using the command below.

sudo tcpdump port 22

Lisp Jupyter Installation

Get some useful utilities

sudo apt-get install openssh-server
sudo apt install curl git

Install Anaconda

Follow the steps here.

Create a new environment

conda create -n lisp python=3
conda list
conda env list
source activate lisp

Install CL-Jupyter

Install the lisp kernel by following the steps here.

Install SBCL

sudo apt-get install sbcl

Install QuickLisp

Follow the steps here.

Some additional steps

sudo apt-get install libzmq3-dev

and the below is unsure (in SBCL)

(ql:quickload "alexandria")
(ql:quickload "trivial-features")
(ql:quickload "bable")

Finally

python ./install-cl-jupyter.py
:: or python3 ./install-cl-jupyter.py

Test using console mode (Ctrl-D to exit).

jupyter console --kernel=lisp

Some settings for external OS. Follow this.

Start notebook.

jupyter notebook
:: or jupyter notebook --ip='*'

Copy the url with token.

Create a notebook with lisp kernel.

Done.

Further Reading

  1. How to Set Up a Linux Server on VirtualBox | teamtreehouse
  2. Virtualbox won’t forward port 8000 | Ubuntu Forums
  3. How To Install the Anaconda Python Distribution on Ubuntu 16.04 | Digital Ocean
  4. Cl-Jupyter | GitHub
  5. QuickLisp
  6. Running a public jupyter notebook server | Jupyter Notebook Documentation

Posted:

Comments