TODO: add/replace figure with one command
Closed this issue · 0 comments
vfilimonov commented
The reason: to avoid commenting add_figure()
and adding replace_figure()
on cell re-evaluation (e.g. when the figure passes via multiple iterations).
Alternatives:
- Make
replace_figure()
to add a new one if there're no figures on the slide - Add
replace=True
argument toadd_figure()
that will search for the picture at the location where the new one is to be added, and if there's one - replace it. For example, matching could be done by comparing the overlapping areas ofbbox
and bounding box of pictures on the slide...