Source code for pyltmapi.LtmDot
import graphviz
from IPython.display import Image, display
[docs]
def display_dot_image(dot_string: str):
graph = graphviz.Source(dot_string)
display(graph)
[docs]
class printer(str):
def __repr__(self):
return self
[docs]
def print(str: str):
display(printer(str))