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.
%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
%load_ext plantuml
For this example plantuml.jar is located in the current working directory.
import glob
glob.glob(r'./*.jar')
['./plantuml.jar']
%%plantuml figure1
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml
eol
%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
%load_ext version_information
%version_information jinja2,sphinx, pyzmq, pygments, tornado, nose, readline, gnureadline
Software | Version |
---|---|
Python | 2.7.1 64bit [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] |
IPython | 2.3.0 |
OS | Darwin 11.4.2 x86_64 i386 64bit |
jinja2 | 2.7.3 |
sphinx | 1.2.3 |
pyzmq | 14.4.0 |
pygments | 1.6 |
tornado | 4.0.2 |
nose | 1.3.4 |
readline | 6.2.4.1 |
gnureadline | 6.3.3 |
Fri Oct 31 23:20:26 2014 PDT |