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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_mermaid_cell-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 67751ed0ff43fd2b8ea4dfe7d1555e669c0ec73acefc47e8d45253d1e16e8f8b
MD5 9c60a6e756d90512fb3f9a2c1a21e9b2
BLAKE2b-256 8bfa67346728bdadfd918a2b5a884d0f0def46c72e7c146f5c75fd6c868becaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_mermaid_cell-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 510c0f6b8089126bcad5b2fd4fd9068c745e06bedb10a306163a4f67003807b9
MD5 0b7e7a65f080d473d1380be0b0454333
BLAKE2b-256 a685b237961c88d94973ca4d017d9b66953eed629bf1d7177c70e45a21c3d76f

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