mpld3pi compatible with v0.3