File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,14 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
241
241
nbclassic \
242
242
nbconvert \
243
243
python-lsp-server[all] \
244
+ # # Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
245
+ && pyFile="$(echo /usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py)" \
246
+ && sed -i 's/subprotocols=self\. subprotocols/subprotocols=self\. selected_subprotocol/g' \
247
+ "$pyFile" \
248
+ && if $(grep -q subprotocols=self.selected_subprotocol "$pyFile" ); then \
249
+ sed -i '/def select_subprotocol/{:a;N;s/\n [[:blank:]]\+ .*//;ta;!P;D}' \
250
+ "$pyFile" ; \
251
+ fi \
244
252
# # Include custom fonts
245
253
&& 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 \
246
254
&& 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 \
You can’t perform that action at this time.
0 commit comments