Skip to content

Commit 5bc4dfc

Browse files
committed
remove app.run_server
1 parent 9566578 commit 5bc4dfc

21 files changed

+20
-33
lines changed

components/dash-table/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ app.layout = dash_table.DataTable(
2525
)
2626

2727
if __name__ == '__main__':
28-
app.run_server(debug=True)
28+
app.run(debug=True)
2929
```
3030

3131
![Interactive Dash DataTable](https://user-images.githubusercontent.com/1280389/47935912-67187080-deb2-11e8-8936-34b0c99b518f.png)

dash/_jupyter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def wait_for_app():
382382
url = f"http://{host}:{port}"
383383
raise OSError(
384384
f"Address '{url}' already in use.\n"
385-
" Try passing a different port to run_server."
385+
" Try passing a different port to run."
386386
)
387387
except requests.ConnectionError as err:
388388
_get_error()

dash/_validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def validate_layout(layout, layout_value):
413413
if layout is None:
414414
raise exceptions.NoLayoutException(
415415
"""
416-
The layout was `None` at the time that `run_server` was called.
416+
The layout was `None` at the time that `run` was called.
417417
Make sure to set the `layout` attribute of your application
418418
before running the server.
419419
"""

dash/dash.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,16 +2272,3 @@ def update(pathname_, search_, **states):
22722272
Output(_ID_DUMMY, "children"),
22732273
Input(_ID_STORE, "data"),
22742274
)
2275-
2276-
def run_server(self, *args, **kwargs):
2277-
"""`run_server` is a deprecated alias of `run` and may be removed in a
2278-
future version. We recommend using `app.run` instead.
2279-
2280-
See `app.run` for usage information.
2281-
"""
2282-
warnings.warn(
2283-
DeprecationWarning(
2284-
"Dash.run_server is deprecated and will be removed in Dash 3.0"
2285-
)
2286-
)
2287-
self.run(*args, **kwargs)

tests/assets/simple_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ def on_style(value):
3333

3434

3535
if __name__ == "__main__":
36-
app.run_server(debug=True, port=10850)
36+
app.run(debug=True, port="10850")

tests/integration/long_callback/app1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def update_output(value):
2727

2828

2929
if __name__ == "__main__":
30-
app.run_server(debug=True)
30+
app.run(debug=True)

tests/integration/long_callback/app2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def update_output(n_clicks):
3030

3131

3232
if __name__ == "__main__":
33-
app.run_server(debug=True)
33+
app.run(debug=True)

tests/integration/long_callback/app3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ def update_output(n_clicks, value):
3333

3434

3535
if __name__ == "__main__":
36-
app.run_server(debug=True)
36+
app.run(debug=True)

tests/integration/long_callback/app4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def update_output(set_progress, n_clicks, value):
3636

3737

3838
if __name__ == "__main__":
39-
app.run_server(debug=True)
39+
app.run(debug=True)

tests/integration/long_callback/app5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def update_output(set_progress, _n_clicks, value):
4646

4747

4848
if __name__ == "__main__":
49-
app.run_server(debug=True)
49+
app.run(debug=True)

0 commit comments

Comments
 (0)