A work in progress to refactor mpld3 in conjunction with mplexporter