Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipicat-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file ipicat-0.1.1.tar.gz.

File metadata

  • Download URL: ipicat-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 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

Hashes for ipicat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 12a0101ca5b096ed6667954fc4d82a4ce524532635f87cbf26318dbfe0e35b3c
MD5 a74cd804d6d4af8f70f80631df833134
BLAKE2b-256 39f1871cf6d0921e3d148bb6cac410823d549af9d807e32d1224138c5b572d84

See more details on using hashes here.

File details

Details for the file ipicat-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ipicat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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

Hashes for ipicat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78e512e866cc23ad85d9b4a6f57b18212a27d157bdf234f2559e2faf69055fa0
MD5 ffc7dc773b964d599350b015cdb0442e
BLAKE2b-256 60b9098986ae934d887883bfc1deb80a63531a2077b36f1f180c9c34b5ed618f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page