import pygal # Create the code code = "print('Hello World!')" # Create the flowchart flowchart = pygal.Flowchart() flowchart.add(code) flowchart.render_to_file('flowchart.svg')
<div><object type="image/svg+xml" data="{{ site.url }}/assets/pygal_flowchart.svg" width="500" height="500"></object></div>