Skip to main content

viASP

Build and Test Documentation Status

viASP generates interactive visualizations of ASP encodings and stable models

Example visualization

viASP allows you to explore the visualization in a variety of ways:

  • Follow the derivation of answer sets step-by-step
  • Explain the derivation of individual symbols with arrows
  • Inspect iterations of recursive rules
  • Visualize unsatisfiable programs
  • Move rules to follow a preferred order
  • Zoom in and out of parts of the graph (press Shift and scroll or +/-)

Installation

viASP is available as a PyPI package. You can install it with:

pip install viasp
:memo: To support the use of clingraph in viASP, install graphviz (version 2.50 or greater) manually.

Usage

Consider the file hamiltonian.lp:

node(1..4). start(1).
edge(1,2). edge(2,3). edge(2,4). edge(3,1).
edge(3,4). edge(4,1). edge(4,3). 

{ hc(V,U) } :- edge(V,U).
reached(V)  :- hc(S,V), start(S).
reached(V)  :- reached(U), hc(U,V).
:- node(V), not reached(V).
:- hc(V,U), hc(V,W), U!=W.
:- hc(U,V), hc(W,V), U!=W.

To start a visualization from the command line, run:

viasp hamiltonian.lp

Check out the documentation to see a full description on how to use viASP.

Examples

An introduction to viASP’s features is given in the notebook. The examples folder shows a variety of scripts that run viASP.

Contributing

See the documentation page to see how to contribute.

Release files for viasp 2.3.0.post3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viasp 2.3.0.post3
File Size Uploaded
viasp-2.3.0.post3.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viasp 2.3.0.post3
File Interpreter ABI Platform
viasp-2.3.0.post3-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / viasp-2.3.0.post3.tar.gz

Download URL viasp-2.3.0.post3.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd840897c0f2a41405ed97dc2476971db92302981ef80394938aa0ce940c53c5
BLAKE2b-256 checksum
How to use checksums
80224bdd4b31ab879faa40d4d56ce62542fabd6b8b37202e36bcc2c565d12a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2025.

Transparency log

Release files / viasp-2.3.0.post3-py3-none-any.whl

Download URL viasp-2.3.0.post3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92a0f1ba83e412678a6c0f82f37f6a3878ad7931d0161c06a0799fa199bf3444
BLAKE2b-256 checksum
How to use checksums
a5139a830898da0a5f7117694722f9b1000fafa4dacef2206d63dcb51b5133d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.3.0.post3 This release

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.8.4

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page