mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
chore: Update docs
This commit is contained in:
parent
d2ed52461e
commit
bcd03151e8
@ -62,10 +62,10 @@ from IPython.display import Image, display
|
|||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
def mm(graph):
|
def mm(graph):
|
||||||
graphbytes = graph.encode("ascii")
|
graphbytes = graph.encode("utf8")
|
||||||
base64_bytes = base64.b64encode(graphbytes)
|
base64_bytes = base64.b64encode(graphbytes)
|
||||||
base64_string = base64_bytes.decode("ascii")
|
base64_string = base64_bytes.decode("ascii")
|
||||||
display(Image(url="https://mermaid.ink/img/" + base64_string))
|
display(Image(url="https://mermaid.ink/img/" + base64_string))
|
||||||
|
|
||||||
mm("""
|
mm("""
|
||||||
graph LR;
|
graph LR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user