diff --git a/dash/_jupyter.py b/dash/_jupyter.py index 16de3b88f9..ac06f849c7 100644 --- a/dash/_jupyter.py +++ b/dash/_jupyter.py @@ -294,6 +294,8 @@ def run_app( else: requests_pathname_prefix = "/" + routes_pathname_prefix = app.config.get("routes_pathname_prefix", "/") + # FIXME Move config initialization to main dash __init__ # low-level setter to circumvent Dash's config locking # normally it's unsafe to alter requests_pathname_prefix this late, but @@ -355,7 +357,7 @@ def run(): self._servers[(host, port)] = server # Wait for server to start up - alive_url = f"http://{host}:{port}{requests_pathname_prefix}_alive_{JupyterDash.alive_token}" + alive_url = f"http://{host}:{port}{routes_pathname_prefix}_alive_{JupyterDash.alive_token}" def _get_error(): try: