在 plotly express 动画中隐藏播放和停止按钮

Hide play and stop buttons in plotly express animation

如何删除播放和停止按钮,只保留滑块?

import plotly.express as px
import pandas as pd

df = pd.DataFrame(dict(x=[0, 1, 0, 1],
                       y=[0, 1, 1, 0],
                       z=[0, 0, 1, 1]))
px.line(df, "x", "y", animation_frame="z")

fig = px.line(df, "x", "y", animation_frame="z")
fig["layout"].pop("updatemenus")
fig.show()