iclingo
🔴🟢🔵 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.
Metadata
Release files for iclingo 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iclingo-0.1.7.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iclingo-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.7 kB
Release files / iclingo-0.1.7.tar.gz
| Download URL | iclingo-0.1.7.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9718f9b351b7455b794c375887f99bfd5b168738ecd8c06b5344e154626060bf
|
|
BLAKE2b-256 checksum How to use checksums |
afed607bef87caf80b028db6b95410623c890bab653da2980633cb9c58506512
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure
|
Release files / iclingo-0.1.7-py3-none-any.whl
| Download URL | iclingo-0.1.7-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d111a9c6fbff72263013d517e3ae2d756fe3850d2e62d0db6ece4e03f766a55
|
|
BLAKE2b-256 checksum How to use checksums |
fbd2a9f92d8d88568475cb4f5abf664b4656cbf570f3b8c2e06f5c3f5527b52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.11.0-1028-azure
|