Skip to content

Instantly share code, notes, and snippets.

@u1ubu
u1ubu / diagmagic.py
Created November 16, 2017 12:14 — forked from sherdim/diagmagic.py
Embed blockdiag into Jupyter 4 using ipython-diags
# -*- coding: utf-8 -*-
"""magics for using blockdiag.com modules with IPython Notebook
The module provides magics: %%actdiag, %%blockdiag, %%nwdiag, %%seqdiag
Sample usage (in IPython cell):
%%blockdiag
{
A -> B -> C;