Added support for mpld3 figures.