semvec/pypi-packages huggingface dataset:
flowchart-magic 0.1.6
Un magic %%flowchart para generar diagramas de flujo en Google Colab.
License: MIT
Requires Python: >=3.7
Keywords: google colab, flowchart, magic command, python

# flowchart-magic

A library for "Jupyter Notebook" / "Google Colab" that allows generating flowcharts using the `%%flowchart` magic command.

## Installation

```bash
pip install flowchart_magic
```

## Usage

Import:

```python
from flowchart_magic import flowchart

# Enable the magic
%load_ext flowchart_magic.flowchart_magic
```

Example:

```
%%flowchart
def example():
    x = 10
    if x > 5:
        print("x is greater than 5")
    else:
        print("x is not greater than 5")
```

## Example Output

Install and import:

![Example Flowchart](https://raw.githubusercontent.com/mgarcesdev/flowchart-magic/refs/heads/main/assets/install_import.png)

Example code:

![Example Flowchart](https://raw.githubusercontent.com/mgarcesdev/flowchart-magic/refs/heads/main/assets/example_jupyter.png)

## Acknowledgments
This project is inspired by and builds upon the original [pyflowchart](https://pypi.org/project/pyflowchart/) project and [flowchart.js](https://flowchart.js.org/). Many thanks to its contributors for their work!

GitHub Repository

For more information, visit the [GitHub repository](https://github.com/mgarcesdev/flowchart-magic/tree/main).