1. Takeshi KOMIYA
  2. ipython-diags

Overview

HTTPS SSH

ipython-diags

This is extension for IPython Notebook adding the ability to create activity diagrams, block diagrams, sequence diagrams and network diagrams using text definitions similar to graphwiz.

The extension uses modules developed by Takeshi KOMIYA at http://blockdiag.com

Installation

  1. (optional step - not required but results in better images) install Inkscape from http://inkscape.org/ and make sure it can be called from any directory (add into path variable, if needed)

  2. Install python packages

    easy_install actdiag, blockdiag, nwdiag, seqdiag
    
  3. In IPython install the extension

    %install_ext https://bitbucket.org/vladf/ipython-diags/raw/default/diagmagic.py
    
  4. Load extension as

    %load_ext diagmagic
    

Usage

Digram usage documentation and samples are available at http://blockdiag.com

When used in IPython the diagram type is a magic and should be prefixed with %% like:

%%seqdiag
{
    A -> B;
}

If your browser supports SVG rendering use %setdiagsvg magic to create SVG

Use %setdiagpng to switch back to PNG

License

Apache License 2.0

Screenshots

screenshot 1

screenshot 1