Black Lives Matter. Please consider donating to Black Girls Code today.

FigureWidget with @interact - moving point

I have the following code:

import numpy as np
import plotly.graph_objects as go
from ipywidgets import interact

EST = np.random.normal(size=(10,2))

fig = go.FigureWidget()

def update(s=0):
    with fig.batch_update():[0].x=[EST[s,0]][0].y=[EST[s,1]]
        print(EST[s,0], ' ', EST[s,1])

I specify the x and y coordinate and want to make the point move to the new location.

I don’t understand why it doesn’t. What am I missing?

Forgot that I have to use fig and not