Skip to main content

mermaid-magic

Render Mermaid diagrams directly within Google Colab Notebooks using the %%mermaid magic command.

Installation

pip install jupyter-mermaid-cell

Loading the Extension

%load_ext jupyter_mermaid_cell

Basic Usage

%%mermaid
graph TD
    A[Start] --> B[Process]
    B --> C[End]

Example: Flowchart

%%mermaid
flowchart LR
    User --> Application
    Application --> Database
    Database --> Application

Example: Sequence Diagram

%%mermaid
sequenceDiagram
    participant U as User
    participant A as API

    U->>A: Request
    A-->>U: Response

Example: Class Diagram

%%mermaid
classDiagram
    class Animal {
        +name
        +eat()
    }

    class Dog {
        +bark()
    }

    Animal <|-- Dog

Example: GitDiagram

%%mermaid
gitGraph
  commit
  commit
  branch develop
  checkout develop
  commit
  commit
  checkout main
  merge develop
  commit
  commit

Requirements

  • Google Colab (or Jupyter Notebook)
  • IPython

Acknowledgements

%%mermaid is a wrapper for Google Colab notebooks that enables seamless rendering of Mermaid diagrams.

  • Functionality: Simplifies the integration of diagrammatic visualization within Colab environments.
  • Reference: This project is inspired by and built upon the original Mermaid.js library.

License

MIT

Metadata

Release files for jupyter-mermaid-cell 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-mermaid-cell 0.1.4
File Size Uploaded
jupyter_mermaid_cell-0.1.4.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-mermaid-cell 0.1.4
File Interpreter ABI Platform
jupyter_mermaid_cell-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / jupyter_mermaid_cell-0.1.4.tar.gz

Download URL jupyter_mermaid_cell-0.1.4.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2be063fb5f45c79f5df40c679f6f5004727e57426133f229b1d1d3d0bd2ccd98
BLAKE2b-256 checksum
How to use checksums
dd7d233fd18fa71bdb51bad5acc09df8760b1df117b43d2a224fb943fbcbcbc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / jupyter_mermaid_cell-0.1.4-py3-none-any.whl

Download URL jupyter_mermaid_cell-0.1.4-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea644896189df3729da554f637fa036d8fe8ac6e1ea2746c6b5f94d46a279d03
BLAKE2b-256 checksum
How to use checksums
2839b855b5679745812bfc65fb42434a1302ed19a6c6f6d6703fefd5f62a8647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page