Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit f96b187

Browse files
committed
Init default_request_pathname_prefix to DASH_REQUESTS_PATHNAME_PREFIX environment variable
1 parent 951dbe2 commit f96b187

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_dash/jupyter_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class JupyterDash(dash.Dash):
3131
See parent docstring for additional parameters
3232
"""
3333
default_mode = 'external'
34-
default_requests_pathname_prefix = None
34+
default_requests_pathname_prefix = os.environ.get(
35+
"DASH_REQUESTS_PATHNAME_PREFIX", None
36+
)
3537
default_server_url = None
3638
_in_ipython = get_ipython() is not None
3739

0 commit comments

Comments
 (0)