Skip to main content

SWI-Prolog Kernel for Jupyter

This is a simple wrapper kernel for SWI Prolog.

Quick Start

Binder

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.

Metadata

Release files for jupyter-swi-prolog 1.0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-swi-prolog 1.0.2.1
File Size Uploaded Provenance Actions
jupyter-swi-prolog-1.0.2.1.tar.gz 4.1 kB Without provenance Details for jupyter-swi-prolog-1.0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-swi-prolog 1.0.2.1
File Interpreter ABI Platform Actions
jupyter_swi_prolog-1.0.2.1-py3-none-any.whl Python 3 none any Details for jupyter_swi_prolog-1.0.2.1-py3-none-any.whl

Total release size: 8.8 kB

Release files / jupyter-swi-prolog-1.0.2.1.tar.gz

Download URL jupyter-swi-prolog-1.0.2.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f592ac560423d67189c6225e173cb663007c7dbc53bf9383d3c58c5de3208660
BLAKE2b-256 checksum
How to use checksums
4e49661f864246699d1a5f65bfba88d70ed4cbf3b90b6390f803d47e2119d287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / jupyter_swi_prolog-1.0.2.1-py3-none-any.whl

Download URL jupyter_swi_prolog-1.0.2.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
995ac1d29d2b86404121eed061a9692651b76c566f3a2ca10020ac15f1a2494c
BLAKE2b-256 checksum
How to use checksums
d3e99ee824abbd0ee9c38d4719538591c34952aae0c987bd25525a96cb9f7bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for jupyter-swi-prolog 1.0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page