A Picat extension for IPython and Jupyter Notebook
Project description
An Picat Extention for IPython and Jupyter Notebook
Prerequisites
Instalation via pip
pip install jupyter
pip install ipicat
Add --user to install in your private environment.
Basic Use
Inside a Jupyter Notebook with Python3 kernel, in a first cell, load the extension:
%load_ext ipicat
In other cell write a complete Picat program. It is important to note that the execution starts with the main predicate:
%%picat
main =>
println('Teste'),
X = 1+1,
println(X).
You can execute a Picat script that is in the same directory that the notebook:
%picat -e t.pi
Help
%picat [-d DELETE] [-e EXECUTE] [-l] [-n NEW]
Picat magic
optional arguments:
-d DELETE, --delete DELETE
Delete a predicate
-e EXECUTE, --execute EXECUTE
Execute a Picat program
-l, --list List all predicates
-n NEW, --new NEW Define a new predicate from a cell. If it already
exists, it will be updated.
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 ipicat-0.2.0.tar.gz.
File metadata
- Download URL: ipicat-0.2.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d497aeb61bb9de08bade69543d312cd0d37cf5fbeb0037b71656ea1683ad4a31
|
|
| MD5 |
d16cbd917a1f2cf0440cd6110d30cb9c
|
|
| BLAKE2b-256 |
75f595c9a5b63ed9fb15ede9aa35888a7cec3cb5f930ca0e3efb7c0aaec0119a
|
File details
Details for the file ipicat-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ipicat-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f8d074c0f8ee4ab8f9e7c130edf833f08204324e76ebc8f968a0301c150ed9f
|
|
| MD5 |
318cf06b64e9b8b04b80a45bbaf71498
|
|
| BLAKE2b-256 |
87901e7ff4c438adb0d584ef4fbb339da47dacd3a67fa34e2926c573d77206c1
|