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 {
1414 NotebookPanel , INotebookModel
1515} from '@jupyterlab/notebook' ;
1616
17-
17+ import { PageConfig } from '@jupyterlab/coreutils' ;
1818
1919/**
2020 * The plugin registration information.
@@ -47,8 +47,13 @@ class VPythonExtension implements DocumentRegistry.IWidgetExtension<NotebookPane
4747 glowcommlab . comm = vp_comm
4848 vp_comm . onMsg = glowcommlab . onmessage
4949
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 ;
5155
56+ glowcommlab . setupWebsocket ( commMsg , serviceUrl )
5257 } ) ;
5358
5459 vp_comm . onClose = ( msg ) => { console . log ( "comm onClose" ) ; } ;
You can’t perform that action at this time.
0 commit comments