“Edit in Chart Studio” button has gone missing in plotly offline

Is there anyway to activate the ‘Edit in Chart Studio’ link when saving a figure into a file using:

import plotly    

I am also using plotly.io.write_html… not sure the difference between plotly.offline.plot and plotly.io.write_html. But so far none of the two seem to allow me to add the ‘Edit in Chart Studio’ button to the html file being generated.

Very similar to this post in dash but now in plotly offline: