Scatter Plot Updating Loop

Hi everyone,

I am trying to update an existing scatter plot by adding one datapoint at a time so I can see how it moves.

However, when I run the loop to do this it waits till the loop is done and then populates every datapoint at the same time.

I have tried all functions like react, update, restyle, addTrace/extendTrace etc. and nothing seems to be working.

Does anyone have any ideas why this happening or how to fix?

Thank you in advance!