Demo of the plantuml magics example posted on stack overflow to enable plantuml users to create inline UML diagrams.

note python module on original stack overflow post was committed to git repo to improve accessibility for all.

In [1]:
%install_ext https://raw.githubusercontent.com/sberke/ipython-plantuml/master/plantuml_magics.py
Installed plantuml_magics.py. To use it, type:
  %load_ext plantuml_magics
In [2]:
%load_ext plantuml

For this example plantuml.jar is located in the current working directory.

In [3]:
import glob
glob.glob(r'./*.jar')
Out[3]:
['./plantuml.jar']
In [4]:
%%plantuml figure1

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml  
Out[4]:
AliceAliceBobBobAuthentication RequestAuthentication Response
In [5]:
%install_ext http://raw.github.com/jrjohansson/version_information/master/version_information.py    
Installed version_information.py. To use it, type:
  %load_ext version_information
In [6]:
%load_ext version_information

%version_information jinja2,sphinx, pyzmq, pygments, tornado, nose, readline, gnureadline
Out[6]:
SoftwareVersion
Python2.7.1 64bit [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
IPython2.3.0
OSDarwin 11.4.2 x86_64 i386 64bit
jinja22.7.3
sphinx1.2.3
pyzmq14.4.0
pygments1.6
tornado4.0.2
nose1.3.4
readline6.2.4.1
gnureadline6.3.3
Fri Oct 31 23:20:26 2014 PDT