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.
Metadata
Release files for ipicat 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ipicat-0.2.0.tar.gz | 11.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipicat-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.8 kB
Release files / ipicat-0.2.0.tar.gz
| Download URL | ipicat-0.2.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d497aeb61bb9de08bade69543d312cd0d37cf5fbeb0037b71656ea1683ad4a31
|
|
BLAKE2b-256 checksum How to use checksums |
75f595c9a5b63ed9fb15ede9aa35888a7cec3cb5f930ca0e3efb7c0aaec0119a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ipicat-0.2.0-py3-none-any.whl
| Download URL | ipicat-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f8d074c0f8ee4ab8f9e7c130edf833f08204324e76ebc8f968a0301c150ed9f
|
|
BLAKE2b-256 checksum How to use checksums |
87901e7ff4c438adb0d584ef4fbb339da47dacd3a67fa34e2926c573d77206c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for ipicat 0.2.0
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.