5
5
6
6
from typing import TYPE_CHECKING
7
7
8
+ import dash
8
9
import matplotlib
9
10
import numpy as np
10
11
import pandas as pd
11
12
import plotly .graph_objects as go
12
13
13
14
from dash import dcc , html
14
15
from dash .dependencies import Input , Output
15
- from jupyter_dash import JupyterDash
16
16
from matplotlib import pyplot as plt
17
17
from networkx import Graph
18
18
from pyproj import Transformer
@@ -1513,9 +1513,9 @@ def plot_dash_app(
1513
1513
edisgo_objects : EDisGo | dict [str , EDisGo ],
1514
1514
debug : bool = False ,
1515
1515
height : int = 500 ,
1516
- ) -> JupyterDash :
1516
+ ) -> dash . Dash :
1517
1517
"""
1518
- Generates a jupyter dash app from given eDisGo object(s).
1518
+ Generates a dash app from given eDisGo object(s).
1519
1519
1520
1520
Parameters
1521
1521
----------
@@ -1538,8 +1538,8 @@ def plot_dash_app(
1538
1538
1539
1539
Returns
1540
1540
-------
1541
- JupyterDash
1542
- Jupyter dash app.
1541
+ Dash
1542
+ dash app.
1543
1543
1544
1544
"""
1545
1545
if isinstance (edisgo_objects , dict ):
@@ -1586,7 +1586,7 @@ def plot_dash_app(
1586
1586
1587
1587
padding = 1
1588
1588
1589
- app = JupyterDash (__name__ )
1589
+ app = dash . Dash (__name__ )
1590
1590
# Workaround to use standard python logging with plotly dash
1591
1591
if debug :
1592
1592
app .logger .disabled = False
@@ -2216,7 +2216,7 @@ def plot_dash(
2216
2216
height : int = 820 ,
2217
2217
):
2218
2218
"""
2219
- Shows the generated jupyter dash app from given eDisGo object(s).
2219
+ Shows the generated dash app from given eDisGo object(s).
2220
2220
2221
2221
Parameters
2222
2222
----------
@@ -2236,16 +2236,16 @@ def plot_dash(
2236
2236
Plotting in own browser tab.
2237
2237
2238
2238
debug : bool
2239
- If True, enables debugging of the jupyter dash app.
2239
+ If True, enables debugging of the dash app.
2240
2240
2241
2241
port : int
2242
2242
Port which the app uses. Default: 8050.
2243
2243
2244
2244
height : int
2245
- Height of the jupyter dash cell.
2245
+ Height of the dash cell.
2246
2246
2247
2247
"""
2248
2248
app = plot_dash_app (edisgo_objects , debug = debug , height = height - 300 )
2249
2249
log = logging .getLogger ("werkzeug" )
2250
2250
log .setLevel (logging .ERROR )
2251
- app .run_server (mode = mode , debug = debug , height = height , port = port )
2251
+ app .run (mode = mode , debug = debug , height = height , port = port )
0 commit comments