Skip to content

Instantly share code, notes, and snippets.

View nilp0inter's full-sized avatar

Roberto Abdelkader Martínez Pérez nilp0inter

View GitHub Profile
@nilp0inter
nilp0inter / diagmagic.py
Last active April 8, 2018 15:29 — forked from dorneanu/diagmagic.py
Embed blockdiag into IPython using ipython-diags
# -*- coding: utf-8 -*-
"""magics for using blockdiag.com modules with IPython Notebook
The module provides magics: %%actdiag, %%blockdiag, %%nwdiag, %%seqdiag, %%packetdiag, %%rackdiag
Sample usage (in IPython cell):
%%blockdiag
{
A -> B -> C;