I am using Plotly and Django to write a graph to an HTML file. I then use an XHR request to get that HTML and embed it in my HTML page. The correct graph loads on the first time but does not update on the front end after running the graphing function again. If I go to the file in PythonAnywhere it has changed, but it does not update on the front end.