File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def _req_keepvars_default(self):
175
175
connect_to_job_cmd = Unicode ('' ,
176
176
help = "Command to connect to running batch job and forward the port "
177
177
"of the running notebook to the Hub. If empty, direct connectivity is assumed. "
178
- "Uses self.job_id as {job_id} and the self.port as {port}."
178
+ "Uses self.job_id as {job_id}, self.port as {port} and self.ip as {host }."
179
179
"If {rport} is used in this string, it is set to self.port, "
180
180
"and a new random self.port is chosen locally and used as {port}."
181
181
"This is useful e.g. for SSH port forwarding."
@@ -221,6 +221,7 @@ async def connect_to_job(self):
221
221
a new random self.port is chosen locally (useful e.g. for SSH port forwarding).
222
222
"""
223
223
subvars = self .get_req_subvars ()
224
+ subvars ['host' ] = self .ip
224
225
subvars ['job_id' ] = self .job_id
225
226
if '{rport}' in self .connect_to_job_cmd :
226
227
self .rport = self .port
You can’t perform that action at this time.
0 commit comments