TL;DR Visualize LookML contents as a network diagram in an interactive Plotly figure.
Built on top of lookml-tools
's grapher. Requires NetworkX, graphviz, and Plotly.
from lookml_visualizer import PlotNetwork
network = PlotNetwork(lkml_paths=['./my_lookml_project/*.lkml'])
To save the interactive plot as an HTML file:
network.fig.save_to_html(output_name='my_lookml_network.html')
Example1: A tiny project
Example2: A large project
Plot layouts
The network plot can have different layouts. The following example shows how to pass a different plot layout:
network = PlotNetwork(paths, plot_layout='fdp')
which will display the same network in example 2 (above) in this layout:
plot_layout
options: 'dot', 'twopi', 'fdp', 'sfdp', 'circo'
$ pip install lookml_visualizer
Also, if not installed, need to install PyGraphviz
$ brew install graphviz