"Edit Chart" doesn't show in interactive graphs

Hello all,

I’m plotting with plotly in PyCharm like this (not in a notebook, just a .py file):

from plotly.offline import plot    
import plotly.express as px

plot(px.line(x=[1,2,3],y=[3,4,5]))

It nicely opens the figure in web browser. However, I don’t see any “Edit in Chart Studio” link on the bottom right. How can I make it show that?

Thanks,
Ali