Skip to main content

# showast An IPython/Jupyter notebook plugin for visualizing abstract syntax trees.

Example usage

Examples can be found in [this IPython notebook](https://github.com/hchasestevens/show_ast/blob/master/Example.ipynb).

`python import showast `

`python %%showast print 1 + 2 ` ![print 1 + 2 AST](http://i.imgur.com/vK3XTkX.png)

`python from showast import show_source import antigravity show_source(antigravity) ` ![antigravity module AST](http://i.imgur.com/NJY6xhw.png)

Installation

` pip install showast `

showast has the following Python dependencies: ` ipython graphviz `

You will also need to have [Graphviz](http://www.graphviz.org/Download..php) installed.

Use of the alternative nltk-based rendering engine requires the following packages: ` nltk pillow ` When using this option, you will additionally need to have [Ghostscript](http://ghostscript.com/download/gsdnld.html) installed.

Contacts

Release files for showast 0.2.4

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

Source distribution (sdist)

Source distribution for showast 0.2.4
File Size Uploaded
showast-0.2.4.zip 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for showast 0.2.4
File Interpreter ABI Platform
showast-0.2.4-py2-none-any.whl Python 2 none any Details

Total release size: 15.5 kB

Release files / showast-0.2.4.zip

Download URL showast-0.2.4.zip
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
985af0864529014c3cda220d58793679b530cac125fe571933a6a6ea114cc701
BLAKE2b-256 checksum
How to use checksums
7a84977f9b49f04080d85621106563d1c11483828a79c3ee0a39cdd8bd44660b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / showast-0.2.4-py2-none-any.whl

Download URL showast-0.2.4-py2-none-any.whl
Size 7.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a4a9965a0358802bad4b23ad07b7a154383785aeedf4a02157f91bb261f3c90e
BLAKE2b-256 checksum
How to use checksums
0b4d5fc1710e706c6d7ad846acb6c82521be172edb4b68bf6d635d52207fee08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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