Cannot disable hoverinfo on a plotly express figure object

In the follwoing small Dash app:

df = pd.read_csv(...)
fig = px.line(x=.., y=.., color=..., template='presentation')
fig.update_traces(mode='lines+markers', hoverinfo='skip')
app = dash.Dash(__name__)
app.layout = htmlDiv([dcc.Graph(figure=fig)])

I still see hover popups on all traces, although I explicitly disable them via hoverinfo='skip'.

Do I have to use a call to another fig.update_.. method? I would like to keep the figure instantiation via fig = px.line(....

Thanks for any pointers.

Ah, sorry this is confusing… Plotly Express uses the new hovertemplate mechanism for its hovers, so you’ll also need to set hovertemplate=None alongside hoverinfo='skip' in your .update_traces() call.

Thanks @nicolaskruchten. That works well.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online