Hi everyone! I keep finding that when I use draw_svg several times in the same Jupyter notebook, I get odd (wrong) drawings that are always wrong in the same way. An example is below:

In the notebook shown above, I have two difference tree sequence objects, ts0 and ts1, that I wish to draw. Using draw_svg with ts0 first produces the correct output, but when I try to draw ts1 in the following cell, you can see that the first few trees are just copied over from ts0.
Without digging into it further I'm not totally sure what's going on, but I'm wondering whether draw_svg is inadvertently adding something to some global object each time it is called, without checking to see if it already exists beforehand and clearing it?
Hi everyone! I keep finding that when I use
draw_svgseveral times in the same Jupyter notebook, I get odd (wrong) drawings that are always wrong in the same way. An example is below:In the notebook shown above, I have two difference tree sequence objects,
ts0andts1, that I wish to draw. Usingdraw_svgwithts0first produces the correct output, but when I try to drawts1in the following cell, you can see that the first few trees are just copied over fromts0.Without digging into it further I'm not totally sure what's going on, but I'm wondering whether
draw_svgis inadvertently adding something to some global object each time it is called, without checking to see if it already exists beforehand and clearing it?