Skip to main content

Magic cell para ejecutar Mermaid de forma interactiva en Jupyter y Colab

Project description

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

Requirements

  • Jupyter Notebook or JupyterLab
  • IPython

License

MIT

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

jupyter_mermaid_cell-0.1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

jupyter_mermaid_cell-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_mermaid_cell-0.1.0.tar.gz.

File metadata

  • Download URL: jupyter_mermaid_cell-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for jupyter_mermaid_cell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 679ab90da73420e39767c3146344c27a8750247f1837be0ad7e8e32729ce3450
MD5 b62f601dfe5d3fbb52b9228b264c45f9
BLAKE2b-256 b1c2e2738e597109483b2d66b0bc5d6054bd1f4602c0a5ff35b41c00284c9f2f

See more details on using hashes here.

File details

Details for the file jupyter_mermaid_cell-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_mermaid_cell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5384f9d6468cdb717077d3c63a92ea13c94735a09560e9293aae7a63c817829b
MD5 6a3a8e1b87f1ff40b59d92601b87bbcd
BLAKE2b-256 45f5bc2c38c6d2e61f92f84b57b190f303734857a2b890bb634c69fd00052a2f

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