An IPython/Jupyter notebook plugin for visualizing abstract syntax trees.
Examples can be found in this IPython notebook.
%%showast print 1 + 2
from showast import show_source import antigravity show_source(antigravity)
pip install showast
showast has the following Python dependencies:
You will also need to have Graphviz installed.
Use of the alternative nltk-based rendering engine requires the following packages:
When using this option, you will additionally need to have Ghostscript installed.