Black Lives Matter. Please consider donating to Black Girls Code today.

Obtaining the link of a plotly plot and displaying to web app

I have to display my plot in plotly in its original interactive form in a web app. I am using py.plot(fig, filename=show+”barchart.png.html”.
I am trying to get the link of the plot created using img=url(show+”barchart.png.html”)
And then printing img in the web app.
But the chart instead of opening in the web app opens in plotly which is not what I want. I want the chart on the same page as the web app instead of a new window opening. How do I do this??