How does plotly.offline.iplot() decide whether to draw another plot or update existing one?

When plotly.offline.iplot() is called repeatedly, it sometimes updates the same plot, and sometimes creates multiple plots. What option/setting controls this?