Hi,
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 Plotly figurewidget overview in Python and have this code;
import plotly.graph_objects as go
f = go.FigureWidget()
ff.add_scatter(y=[2, 1, 4, 3]);
f.layout.title = ‘Hello FigureWidget’– update scatter data
scatter = f.data[0]
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?