Skip to main content

A Picat extension for IPython and Jupyter Notebook

Project description

An Picat Extention for IPython and Jupyter Notebook


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:


main =>
    X = 1+1,

You can execute a Picat script that is in the same directory that the notebook:

%picat -e t.pi


  %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

Download files

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

Files for ipicat, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ipicat-0.2.0-py3-none-any.whl (11.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ipicat-0.2.0.tar.gz (11.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page