Skip to content

Commit 7c05e67

Browse files
committed
base: Update latest Dockerfile
- jupyterhub/jupyter-server-proxy#445
1 parent 3a18ba9 commit 7c05e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
404404
nbclassic \
405405
nbconvert \
406406
python-lsp-server[all] \
407+
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
408+
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.subprotocols if self\.subprotocols else None/g' \
409+
/usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py \
407410
## Include custom fonts
408411
&& sed -i 's|</head>|<link rel="preload" href="{{page_config.fullStaticUrl}}/assets/fonts/MesloLGS-NF-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"></head>|g' /usr/local/share/jupyter/lab/static/index.html \
409412
&& sed -i 's|</head>|<link rel="preload" href="{{page_config.fullStaticUrl}}/assets/fonts/MesloLGS-NF-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous"></head>|g' /usr/local/share/jupyter/lab/static/index.html \

0 commit comments

Comments
 (0)