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

Commit a459279

Browse files
committed
lower-level workaround for late config editing
1 parent 5ff9288 commit a459279

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter_dash/jupyter_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ def run_server(
228228
requests_pathname_prefix = requests_pathname_prefix.format(port=port)
229229
else:
230230
requests_pathname_prefix = '/'
231-
self.config.update({'requests_pathname_prefix': requests_pathname_prefix})
231+
# low-level setter to circumvent Dash's config locking
232+
# normally it's unsafe to alter requests_pathname_prefix this late, but
233+
# Jupyter needs some unusual behavior.
234+
dict.__setitem__(self.config, "requests_pathname_prefix", requests_pathname_prefix)
232235

233236
# Compute server_url url
234237
if self.server_url is None:

0 commit comments

Comments
 (0)