Introduction

Use fig.write_html("file.html") to save the html code.

Here I added file.html to my assets/images/ folder

Use the code (height and width can be adjusted as desired)

<iframe
  src="https://esnt.github.io//tass-blog-examples/assets/images/file.html"
  style="width:100%; height:500px;"
></iframe>