add mpld3 local functionality