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")
Create a Mermaid diagram in a Jupyter notebook
Create a Mermaid diagram in a marimo notebook or a marimo WebAssembly (WASM) notebook
Create a Mermaid diagram in a JupyterLite notebook
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cdab3ec2f87e38a1edc572ea04c0a45952fab83927171af6bb4620777480d35
|
|
| MD5 |
7a2a5895a08467c60342ac1969fbd2c2
|
|
| BLAKE2b-256 |
af08e6ee5cb5a1d576b36330547652352bbc3065151daa5bbb4463d1adfd0f62
|
File details
Details for the file mermaid_nb-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: mermaid_nb-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf99a6d1f1387b2b68cc6d87a19c24e37dd00daef0ef66439e2cae2b7cda15c2
|
|
| MD5 |
6ea87357a886b1e7d720f40db31fe2f3
|
|
| BLAKE2b-256 |
260c6874191db1bde07b581ece560c2f573c5009373c5927d12374c15d5a24c0
|