Skip to content

Commit

Permalink
chore: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 6, 2023
1 parent d2ed524 commit bcd0315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/config/Tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bcd0315

Please sign in to comment.