so far in my simple example:
controller:
def example_plot():
import matplotlib.pyplot as plt, mpld3
fig, ax = plt.subplots()
plot = ax.plot([3,1,4,1,5], 'ks-', mec='w', mew=5, ms=20)
make_html = mpld3.fig_to_html(fig, template_type = "general")
return locals()
view:
{{=HTML(make_html)}}
The code passed the generated html to my view but i get raw html.
How i actually can render the make_html to a view?
Any suggestions ?