a basic wrapper kernel for SWI-Prolog
Project description
SWI-Prolog Kernel for Jupyter
This is a simple wrapper kernel for SWI Prolog.
Quick Start
Table of Contents
Setup
Using pip
Run pip to install the corresponding package from pypi after
Jupyter is already installed.
pip install jupyter-swi-prolog
Register the kernel.
jupyter kernelspec install <path to the site-packages directory>/swi_prolog_kernel
Now start Jupyter the usual way and the kernel should be available.
Using Docker
Execute the following command to pull a and run a prepared image.
docker run -p 8888:8888 troebs/jupyter:swi-prolog
This image can also be used with JupyterHub and the DockerSpawner / SwarmSpawner and probably with the kubespawner. You can also build your own image using the Dockerfile in the repository.
Usage
An example can be found in the repository.
Please note: consult is usually used to read facts and rules from a Prolog source file. To avoid the need for
separate files, the magic command %%CONSULT is supported, which replaces this file with the contents of a cell in the
Jupyter notebook.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyter-swi-prolog-1.0.2.1.tar.gz.
File metadata
- Download URL: jupyter-swi-prolog-1.0.2.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f592ac560423d67189c6225e173cb663007c7dbc53bf9383d3c58c5de3208660
|
|
| MD5 |
5015a9122aa327aba82e8473491e5624
|
|
| BLAKE2b-256 |
4e49661f864246699d1a5f65bfba88d70ed4cbf3b90b6390f803d47e2119d287
|
File details
Details for the file jupyter_swi_prolog-1.0.2.1-py3-none-any.whl.
File metadata
- Download URL: jupyter_swi_prolog-1.0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
995ac1d29d2b86404121eed061a9692651b76c566f3a2ca10020ac15f1a2494c
|
|
| MD5 |
a8f7d223dffba8b955e6c17e77495ca9
|
|
| BLAKE2b-256 |
d3e99ee824abbd0ee9c38d4719538591c34952aae0c987bd25525a96cb9f7bde
|