From be815964e56af13f0d37cb40a82ccdad9c66f966 Mon Sep 17 00:00:00 2001 From: stevenruidigao Date: Sun, 18 Jul 2021 20:12:42 -0400 Subject: [PATCH 1/2] Update connection_manager.ts Hacky fix for jupyterlab > 3.0.14. Fixes (?) https://github.com/kiteco/issue-tracker/issues/771 and https://github.com/kiteco/issue-tracker/issues/757 and https://github.com/kiteco/issue-tracker/issues/752... --- packages/jupyterlab-kite/src/connection_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyterlab-kite/src/connection_manager.ts b/packages/jupyterlab-kite/src/connection_manager.ts index 22b05763..c3d6a76a 100644 --- a/packages/jupyterlab-kite/src/connection_manager.ts +++ b/packages/jupyterlab-kite/src/connection_manager.ts @@ -302,7 +302,7 @@ export namespace DocumentConnectionManager { return { base: baseUri, - document: URLExt.join(baseUri, virtual_document.uri), + document: URLExt.join(baseUri, virtual_document.uri).replace("://",":///").replace(":////", ":///"), server: URLExt.join('ws://jupyter-kite', language), socket: URLExt.join( wsBase, From daff293e75ad0bdf346241c7b09eb4226559fbff Mon Sep 17 00:00:00 2001 From: stevenruidigao Date: Sun, 18 Jul 2021 20:14:05 -0400 Subject: [PATCH 2/2] Update connection_manager.ts oops --- packages/jupyterlab-kite/src/connection_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jupyterlab-kite/src/connection_manager.ts b/packages/jupyterlab-kite/src/connection_manager.ts index c3d6a76a..98d8e49c 100644 --- a/packages/jupyterlab-kite/src/connection_manager.ts +++ b/packages/jupyterlab-kite/src/connection_manager.ts @@ -302,7 +302,7 @@ export namespace DocumentConnectionManager { return { base: baseUri, - document: URLExt.join(baseUri, virtual_document.uri).replace("://",":///").replace(":////", ":///"), + document: URLExt.join(baseUri, virtual_document.uri).replace("file://","file:///").replace("file:////", "file:///"), server: URLExt.join('ws://jupyter-kite', language), socket: URLExt.join( wsBase,