Skip to content

Mermaid ​

The Markdown cells of Basthon's notebook can now draw Mermaid diagrams: graphs, sequence, class or state diagrams… A mermaid code block is all it takes:

markdown
```mermaid
graph LR
    A[Input] --> B{Test}
    B -->|true| C[Action]
    B -->|false| D[End]
```

They can also be produced from Python with IPython.display.Markdown.

Play with it!

Mermaid