Skip to main content

IPython notebook plugin for visualizing abstract syntax trees.

Project description

# 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

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

showast-0.2.4.zip (8.4 kB view details)

Uploaded Source

Built Distribution

showast-0.2.4-py2-none-any.whl (7.1 kB view details)

Uploaded Python 2

File details

Details for the file showast-0.2.4.zip.

File metadata

  • Download URL: showast-0.2.4.zip
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for showast-0.2.4.zip
Algorithm Hash digest
SHA256 985af0864529014c3cda220d58793679b530cac125fe571933a6a6ea114cc701
MD5 c68908b2e9af06b5c0ee710269001fda
BLAKE2b-256 7a84977f9b49f04080d85621106563d1c11483828a79c3ee0a39cdd8bd44660b

See more details on using hashes here.

File details

Details for the file showast-0.2.4-py2-none-any.whl.

File metadata

File hashes

Hashes for showast-0.2.4-py2-none-any.whl
Algorithm Hash digest
SHA256 a4a9965a0358802bad4b23ad07b7a154383785aeedf4a02157f91bb261f3c90e
MD5 fa4d1a3528acfc44a62e41facba03543
BLAKE2b-256 0b4d5fc1710e706c6d7ad846acb6c82521be172edb4b68bf6d635d52207fee08

See more details on using hashes here.

Supported by

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