From b7b926b23bb5606c2b13af5322dd4a67cbebfb99 Mon Sep 17 00:00:00 2001 From: Sheri Gilley Date: Thu, 2 Feb 2023 16:19:55 -0600 Subject: [PATCH] fix code cell (#2039) * fix code cell If creating the compute cluster, the print didn't work. This change fixes that. (Default code won't hit this, because the compute cluster already exists. But only occurs when that default cluster is not present.) * Update azureml-in-a-day.ipynb * Update azureml-in-a-day.ipynb * move print and revert var change --- tutorials/azureml-in-a-day/azureml-in-a-day.ipynb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tutorials/azureml-in-a-day/azureml-in-a-day.ipynb b/tutorials/azureml-in-a-day/azureml-in-a-day.ipynb index c76935e465..da43a71cd2 100644 --- a/tutorials/azureml-in-a-day/azureml-in-a-day.ipynb +++ b/tutorials/azureml-in-a-day/azureml-in-a-day.ipynb @@ -177,13 +177,14 @@ " # Dedicated or LowPriority. The latter is cheaper but there is a chance of job termination\n", " tier=\"Dedicated\",\n", " )\n", + + " print(\n", + " f\"AMLCompute with name {cpu_cluster.name} will be created, with compute size {cpu_cluster.size}\"\n", + " )", "\n", " # Now, we pass the object to MLClient's create_or_update method\n", " cpu_cluster = ml_client.compute.begin_create_or_update(cpu_cluster)\n", - "\n", - "print(\n", - " f\"AMLCompute with name {cpu_cluster.name} is created, the compute size is {cpu_cluster.size}\"\n", - ")" + "\n" ] }, {