72
72
shell = 'JupyterConsoleApp.shell_port' ,
73
73
iopub = 'JupyterConsoleApp.iopub_port' ,
74
74
stdin = 'JupyterConsoleApp.stdin_port' ,
75
+ control = 'JupyterConsoleApp.control_port' ,
75
76
existing = 'JupyterConsoleApp.existing' ,
76
77
f = 'JupyterConsoleApp.connection_file' ,
77
78
@@ -222,7 +223,8 @@ def init_ssh(self):
222
223
shell_port = self .shell_port ,
223
224
iopub_port = self .iopub_port ,
224
225
stdin_port = self .stdin_port ,
225
- hb_port = self .hb_port
226
+ hb_port = self .hb_port ,
227
+ control_port = self .control_port
226
228
)
227
229
228
230
self .log .info ("Forwarding connections to %s via %s" % (ip , self .sshserver ))
@@ -236,7 +238,7 @@ def init_ssh(self):
236
238
self .log .error ("Could not setup tunnels" , exc_info = True )
237
239
self .exit (1 )
238
240
239
- self .shell_port , self .iopub_port , self .stdin_port , self .hb_port = newports
241
+ self .shell_port , self .iopub_port , self .stdin_port , self .hb_port , self . control_port = newports
240
242
241
243
cf = self .connection_file
242
244
root , ext = os .path .splitext (cf )
@@ -275,6 +277,7 @@ def init_kernel_manager(self):
275
277
iopub_port = self .iopub_port ,
276
278
stdin_port = self .stdin_port ,
277
279
hb_port = self .hb_port ,
280
+ control_port = self .control_port ,
278
281
connection_file = self .connection_file ,
279
282
kernel_name = self .kernel_name ,
280
283
parent = self ,
@@ -302,6 +305,7 @@ def init_kernel_manager(self):
302
305
self .iopub_port = km .iopub_port
303
306
self .stdin_port = km .stdin_port
304
307
self .hb_port = km .hb_port
308
+ self .control_port = km .control_port
305
309
self .connection_file = km .connection_file
306
310
307
311
atexit .register (self .kernel_manager .cleanup_connection_file )
@@ -318,6 +322,7 @@ def init_kernel_client(self):
318
322
iopub_port = self .iopub_port ,
319
323
stdin_port = self .stdin_port ,
320
324
hb_port = self .hb_port ,
325
+ control_port = self .control_port ,
321
326
connection_file = self .connection_file ,
322
327
parent = self ,
323
328
)
0 commit comments