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.2.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.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_mermaid_cell-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c99ba7b7a705422d652952f297af9311d03b692c0bd409c47b2b7bf6401f13d1
MD5 75f83bb97507bfbbd95dfb578cc8dddd
BLAKE2b-256 827a2a91f20a80810b7b0a53f695fa8c69221ba0c821c60caf4cf578c2385770

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_mermaid_cell-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45fde477a35fb1594e582410c3a5c39328f9b3e88a94cb9f053453182148cb4a
MD5 3ae2dfd16f68a62116dd5909d7d1c5ce
BLAKE2b-256 1b5d924b06abd605c92922d0b9d68ae52a63506ec221a244ca2ee44b5f6dfca3

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