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

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

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.4.tar.gz (2.0 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.4-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_mermaid_cell-0.1.4.tar.gz
  • Upload date:
  • Size: 2.0 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.4.tar.gz
Algorithm Hash digest
SHA256 2be063fb5f45c79f5df40c679f6f5004727e57426133f229b1d1d3d0bd2ccd98
MD5 aeb6139efb4bc86c7d14019bb7c65f09
BLAKE2b-256 dd7d233fd18fa71bdb51bad5acc09df8760b1df117b43d2a224fb943fbcbcbc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_mermaid_cell-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea644896189df3729da554f637fa036d8fe8ac6e1ea2746c6b5f94d46a279d03
MD5 68b42cf64358a1aaa5ba1f9beb9cc85b
BLAKE2b-256 2839b855b5679745812bfc65fb42434a1302ed19a6c6f6d6703fefd5f62a8647

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