Skip to content

Instantly share code, notes, and snippets.

@sherdim
sherdim / diagmagic.py
Last active November 16, 2017 12:14 — forked from nilp0inter/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;