Skip to content

Commit 8177b70

Browse files
authored
Update examples (#1096)
* run_server -> run * Update apps
1 parent 6408424 commit 8177b70

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

components_page/components/index/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121

2222
# 5. Start the Dash server
2323
if __name__ == "__main__":
24-
app.run_server()
24+
app.run()

content/docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ app.layout = dbc.Container(
6565
)
6666

6767
if __name__ == "__main__":
68-
app.run_server()
68+
app.run()
6969
```
7070

7171
## Examples

demos/demo_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ def for_path(self, component):
6666
if __name__ == "__main__":
6767
app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
6868
app.layout = _layout
69-
app.run_server(port=8888, debug=True)
69+
app.run(port=8888, debug=True)

demos/theme_explorer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ def open_toast(_):
134134

135135

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

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h2>Get started quickly</h2>
6868
)
6969

7070
if __name__ == "__main__":
71-
app.run_server()</code></pre>
71+
app.run()</code></pre>
7272
</div>
7373
</div>
7474
<hr />

0 commit comments

Comments
 (0)