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.
%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
%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