Skip to main content

No project description provided

Project description

mermaid-nb

Create Mermaid diagrams in Python

Installation

pip install mermaid-nb

or with uv:

uv add mermaid-nb

Getting Started

In your notebook, run the following command:

from mermaid_nb import Mermaid

Mermaid(diagram="flowchart LR\n  Hello --> World\n  Hello --> Name")
image

Create a Mermaid diagram in a Jupyter notebook

image

Create a Mermaid diagram in a marimo notebook or a marimo WebAssembly (WASM) notebook

image

Create a Mermaid diagram in a JupyterLite notebook

image

Development

We recommend using uv for development. It will automatically manage virtual environments and dependencies for you.

uv run jupyter lab example.ipynb

Alternatively, create and manage your own virtual environment:

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
jupyter lab example.ipynb

Open example.ipynb in JupyterLab, VS Code, or your favorite editor to start developing. Changes made in src/mermaid_nb/static/ will be reflected in the notebook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mermaid_nb-0.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mermaid_nb-0.0.1-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mermaid_nb-0.0.1.tar.gz.

File metadata

  • Download URL: mermaid_nb-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for mermaid_nb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3cdab3ec2f87e38a1edc572ea04c0a45952fab83927171af6bb4620777480d35
MD5 7a2a5895a08467c60342ac1969fbd2c2
BLAKE2b-256 af08e6ee5cb5a1d576b36330547652352bbc3065151daa5bbb4463d1adfd0f62

See more details on using hashes here.

File details

Details for the file mermaid_nb-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mermaid_nb-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf99a6d1f1387b2b68cc6d87a19c24e37dd00daef0ef66439e2cae2b7cda15c2
MD5 6ea87357a886b1e7d720f40db31fe2f3
BLAKE2b-256 260c6874191db1bde07b581ece560c2f573c5009373c5927d12374c15d5a24c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page