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.1.tar.gz (1.9 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.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_mermaid_cell-0.1.1.tar.gz
  • Upload date:
  • Size: 1.9 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.1.tar.gz
Algorithm Hash digest
SHA256 41b711c1dedb2c8742fdffa2130763775787b6ba6d6e133541fcfebadaf574f8
MD5 f4d719a076c20d6937a7f500d9b42439
BLAKE2b-256 469e8244d041a46ee162d91c08d4ddc9955d01295f785d24b0858bffd9a4c0bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_mermaid_cell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 031bbc1eea8667abb576a56a4ebad92ee7ca0dcf8902084bb51217287ad2e2da
MD5 bbcdeecc19dc4ddf0c4df022ec33dca2
BLAKE2b-256 0d31b13c7400ec2dc058aca33acb399be18c8335f46b4473aebfd1a29fccaf1e

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