Skip to content

Commit fc4ae54

Browse files
authored
fixed examples
1 parent 74fb013 commit fc4ae54

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

articles/machine-learning/how-to-interactive-jobs.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,26 @@ By specifying interactive applications at job creation, you can connect directly
8282
services={
8383
"My_jupyterlab": JobService(
8484
job_service_type="jupyter_lab",
85-
nodes="all"
85+
nodes="all" # For distributed jobs, use the `nodes` property to pick which node you want to enable interactive services on. If `nodes` are not selected, by default, interactive applications are only enabled on the head node. Values are "all", or compute node index (for ex. "0", "1" etc.)
8686
),
8787
"My_vscode": JobService(
8888
job_service_type="vs_code",
8989
nodes="all"
9090
),
9191
"My_tensorboard": JobService(
92-
job_service_type="tensor_board"
93-
logs = "logs/tblogs" # relative path of Tensorboard logs (same as in your training script),
94-
nodes="all"
92+
job_service_type="tensor_board",
93+
nodes="all",
94+
properties={
95+
"logDir": "output/tblogs" # relative path of Tensorboard logs (same as in your training script)
96+
}
9597
),
9698
"My_ssh": JobService(
9799
job_service_type="ssh",
98100
sshPublicKeys="<add-public-key>",
99101
nodes="all"
102+
properties={
103+
"sshPublicKeys":"<add-public-key>"
104+
}
100105
),
101106
}
102107
)
@@ -133,11 +138,11 @@ By specifying interactive applications at job creation, you can connect directly
133138
services:
134139
my_vs_code:
135140
job_service_type: vs_code
136-
nodes: all
141+
nodes: all # For distributed jobs, use the `nodes` property to pick which node you want to enable interactive services on. If `nodes` are not selected, by default, interactive applications are only enabled on the head node. Values are "all", or compute node index (for ex. "0", "1" etc.)
137142
my_tensor_board:
138143
job_service_type: tensor_board
139144
properties:
140-
logDir: "logs/tblogs" # relative path of Tensorboard logs (same as in your training script)
145+
logDir: "output/tblogs" # relative path of Tensorboard logs (same as in your training script)
141146
nodes: all
142147
my_jupyter_lab:
143148
job_service_type: jupyter_lab

0 commit comments

Comments
 (0)