使用 plotly dash 缺少 1 个位置错误

Missing 1 positional error using plotly dash

如何解决这个错误:

TypeError: run_server() missing 1 required positional argument: 'self'?

app = dash.Dash替换为app = dash.Dash(__name__)