Plotly line chart update data

hi. im new. im using spyder and for open html file using firefox. i have a line chart. the data comes from csv file.
and this csv update every 1.5sec. i want to update this data.
i try to restart py file. in this time always open new html file. i dont want to open many tab.
i want to open one tab and update its data in every 1-1.5 sec. (same setInterval in javascript)
is there any way to update data without new tab?
(I’m new to this. )

same code:
fig = go.FigureWidget(data=data, layout = layout)
plot(fig,filename = β€˜graph.html’)