Skip to main content

🔴🟢🔵 clingo kernel for Jupyter

Project description

iclingo

Compatible python versions build workflow badge PyPI version

🔴🟢🔵 clingo kernel for Jupyter.

Install

To install, simply run

pip install iclingo
python -m iclingo.install

Usage

Once installed, you can run clingo code directly in jupyter, alongside typical jupyter functionality such as markdown cells. An example of this is available in examples/.

Limitations

  • No syntax highlighting is available
  • Currently, no configuration options can be passed to a given cell. This means that the default clingo options are used, such that for a problem with multiple answers, only the first answer is shown.
  • Multi-shot solving is not supported

Development

This repository is mostly based on the documentation presented in Making simple Python wrapper kernels.

We use poetry to track dependencies and build our package.

GitHub Actions are then used for automatic publishing to PyPi upon pushes of git tags to the repository.

When ready to publish the latest commit, simply run the following:

git tag $(poetry version --short)
git push --tags

Pull requests and contributions are more than welcome. Please refer to the relevant page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iclingo-0.1.7.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

iclingo-0.1.7-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file iclingo-0.1.7.tar.gz.

File metadata

  • Download URL: iclingo-0.1.7.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for iclingo-0.1.7.tar.gz
Algorithm Hash digest
SHA256 9718f9b351b7455b794c375887f99bfd5b168738ecd8c06b5344e154626060bf
MD5 a44802ac16bd00f41b3847bb8e3caea1
BLAKE2b-256 afed607bef87caf80b028db6b95410623c890bab653da2980633cb9c58506512

See more details on using hashes here.

File details

Details for the file iclingo-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: iclingo-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for iclingo-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2d111a9c6fbff72263013d517e3ae2d756fe3850d2e62d0db6ece4e03f766a55
MD5 e3640a7cfd3c2e31894306df16359a53
BLAKE2b-256 fbd2a9f92d8d88568475cb4f5abf664b4656cbf570f3b8c2e06f5c3f5527b52d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page