chore: Update docs

This commit is contained in:
Sidharth Vinod 2023-09-06 22:09:15 +05:30
parent d2ed52461e
commit bcd03151e8
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -62,10 +62,10 @@ from IPython.display import Image, display
import matplotlib.pyplot as plt
def mm(graph):
graphbytes = graph.encode("ascii")
base64_bytes = base64.b64encode(graphbytes)
base64_string = base64_bytes.decode("ascii")
display(Image(url="https://mermaid.ink/img/" + base64_string))
graphbytes = graph.encode("utf8")
base64_bytes = base64.b64encode(graphbytes)
base64_string = base64_bytes.decode("ascii")
display(Image(url="https://mermaid.ink/img/" + base64_string))
mm("""
graph LR;