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.
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
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
ipicat-0.1.1.tar.gz
(10.9 kB
view hashes)
Built Distribution
ipicat-0.1.1-py3-none-any.whl
(11.3 kB
view hashes)