I am new to plotly and wanted to run a dynamic plot that updates during the execution of the program.
I am following this page https://plotly.com/python/figurewidget/ and have this code;
import plotly.graph_objects as go
f = go.FigureWidget()
f.add_scatter(y=[2, 1, 4, 3]);
f.layout.title = ‘Hello FigureWidget’
– update scatter data
scatter = f.data
scatter.y = [3, 1, 4, 3]
however, nothing happens, there is no output.
I am running from Spyder or command line.
If I do plot(f) before and after update it then displays two plots in the browser.
How should this be done?