Skip to content

Commit f33bd47

Browse files
committed
Add port parameter
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent c15a384 commit f33bd47

File tree

1 file changed

+2
-2
lines changed
  • src/power_grid_model_ds/_core/visualizer

1 file changed

+2
-2
lines changed

src/power_grid_model_ds/_core/visualizer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
MDBOOTSTRAP = "https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/8.2.0/mdb.min.css"
2424

2525

26-
def visualize(grid: Grid, debug: bool = False):
26+
def visualize(grid: Grid, debug: bool = False, port: int = 8050) -> None:
2727
"""Visualize the Grid.
2828
2929
grid: Grid
@@ -61,7 +61,7 @@ def visualize(grid: Grid, debug: bool = False):
6161
SELECTION_OUTPUT_HTML,
6262
],
6363
)
64-
app.run(debug=debug)
64+
app.run(debug=debug, port=port)
6565

6666

6767
def _get_columns_store(grid: Grid) -> dcc.Store:

0 commit comments

Comments
 (0)