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 published on gist to improve accessibility for all.

In [1]:
%install_ext https://gist.githubusercontent.com/sberke/7360a4b7aa79aefccbb0/raw/f19a8910c847421977daa7a8c893bb7d77aa78b5/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