Update layout in jupyter notebook

Hello when i use the first code in Jupyter Notebook it creates an html-chaert in a new window. It doesn’t print the chart in the notebook.

data=[trace1,trace2]
layout=go.Layout(title=“Some title”)
fig=go.Figure(data=data,layout=layout)
pyo.plot(fig)

When I want to update the layout , the chart is printed in de the notebook correctly but the html file is still the same?
What do i have to change to have the html updated ?

data=[trace1,trace2]
layout=go.Layout(title=“Some title”)
fig=go.Figure(data=data,layout=layout)
fig.update_layout(
title=“Plot Title”,
xaxis_title=“X Axis Title”,
yaxis_title=“Y Axis Title”,
legend_title=“Legend Title”,
font=dict(
family=“Courier New, monospace”,
size=18,
color=“RebeccaPurple”
))
pyo.plot(fig)