File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
NotebookPanel , INotebookModel
15
15
} from '@jupyterlab/notebook' ;
16
16
17
-
17
+ import { PageConfig } from '@jupyterlab/coreutils' ;
18
18
19
19
/**
20
20
* The plugin registration information.
@@ -47,8 +47,13 @@ class VPythonExtension implements DocumentRegistry.IWidgetExtension<NotebookPane
47
47
glowcommlab . comm = vp_comm
48
48
vp_comm . onMsg = glowcommlab . onmessage
49
49
50
- glowcommlab . setupWebsocket ( commMsg )
50
+ // Get base URL of current notebook server
51
+ let baseUrl = PageConfig . getBaseUrl ( )
52
+
53
+ // Construct URL of our proxied service
54
+ let serviceUrl = base_url + 'proxy/' + port ;
51
55
56
+ glowcommlab . setupWebsocket ( commMsg , serviceUrl )
52
57
} ) ;
53
58
54
59
vp_comm . onClose = ( msg ) => { console . log ( "comm onClose" ) ; } ;
You can’t perform that action at this time.
0 commit comments