[ML] Get studio url using 'job.studio_url' property instead of 'job.services["Studio"].endpoint (#1878)

* [ML] Get studio url using 'job.studio_url' property instead of 'job.services[Studio].endpoint
This commit is contained in:
TonyJ1 2022-11-14 13:36:29 -08:00 коммит произвёл GitHub
Родитель 84344c2b5f
Коммит 0144d7363e
10 изменённых файлов: 22 добавлений и 22 удалений

Просмотреть файл

@ -85,7 +85,7 @@
"# submit the command\n",
"returned_job = ml_client.jobs.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -137,7 +137,7 @@
"# submit the command\n",
"returned_job = ml_client.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -218,7 +218,7 @@
"# submit the command\n",
"returned_job = ml_client.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -331,7 +331,7 @@
"# submit the command\n",
"returned_job = ml_client.jobs.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
}
],
@ -364,4 +364,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

Просмотреть файл

@ -224,7 +224,7 @@
"# submit the command job\n",
"returned_job = ml_client.jobs.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -340,7 +340,7 @@
"# submit the command job\n",
"returned_job = ml_client.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
}
],

Просмотреть файл

@ -354,7 +354,7 @@
"# submit the command\n",
"returned_job = ml_client.jobs.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -403,7 +403,7 @@
"# submit the command\n",
"returned_job = ml_client.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{

Просмотреть файл

@ -323,7 +323,7 @@
"outputs": [],
"source": [
"# Get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{

Просмотреть файл

@ -286,7 +286,7 @@
"print(f\"Created job: {returned_job}\")\n",
"\n",
"# Get a URL for the status of the job\n",
"# returned_job.services[\"Studio\"].endpoint"
"# returned_job.studio_url"
]
},
{

Просмотреть файл

@ -148,7 +148,7 @@
"# submit the command\n",
"returned_job = ml_client.jobs.create_or_update(command_job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{
@ -236,7 +236,7 @@
"# submit the sweep\n",
"returned_sweep_job = ml_client.create_or_update(sweep_job)\n",
"# get a URL for the status of the job\n",
"returned_sweep_job.services[\"Studio\"].endpoint"
"returned_sweep_job.studio_url"
]
},
{
@ -350,7 +350,7 @@
"returned_sweep_job_cmd = ml_client.jobs.create_or_update(cmd_component_sweep_job)\n",
"\n",
"# get a URL for the status of the job\n",
"returned_sweep_job_cmd.services[\"Studio\"].endpoint"
"returned_sweep_job_cmd.studio_url"
]
},
{

Просмотреть файл

@ -281,7 +281,7 @@
"# submit the command\n",
"returned_job = ml_client.jobs.create_or_update(job)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
]
},
{

Просмотреть файл

@ -371,7 +371,7 @@
"# submit the command\n",
"returned_job = ml_client.create_or_update(explore_datastore)\n",
"# get a URL for the status of the job\n",
"returned_job.services[\"Studio\"].endpoint"
"returned_job.studio_url"
],
"outputs": [],
"execution_count": null,

Просмотреть файл

@ -260,9 +260,9 @@
"\n",
"# get a URL for the status of the job\n",
"print(\"The url to see your live job running is returned by the sdk:\")\n",
"print(returned_job.services[\"Studio\"].endpoint)\n",
"print(returned_job.studio_url)\n",
"# open the browser with this url\n",
"webbrowser.open(returned_job.services[\"Studio\"].endpoint)\n",
"webbrowser.open(returned_job.studio_url)\n",
"\n",
"# print the pipeline run id\n",
"print(\n",
@ -330,7 +330,7 @@
"\n",
"# get a URL for the status of the job\n",
"print(\"The url to see your live job running is returned by the sdk:\")\n",
"print(returned_job.services[\"Studio\"].endpoint)\n",
"print(returned_job.studio_url)\n",
"```"
]
},
@ -448,9 +448,9 @@
"\n",
"# get a URL for the status of the job\n",
"print(\"The url to see your live job running is returned by the sdk:\")\n",
"print(returned_job.services[\"Studio\"].endpoint)\n",
"print(returned_job.studio_url)\n",
"# open the browser with this url\n",
"webbrowser.open(returned_job.services[\"Studio\"].endpoint)\n",
"webbrowser.open(returned_job.studio_url)\n",
"\n",
"# print the pipeline run id\n",
"print(\n",

Просмотреть файл

@ -992,7 +992,7 @@
" experiment_name=\"e2e_registered_components\",\n",
")\n",
"# open the pipeline in web browser\n",
"webbrowser.open(pipeline_job.services[\"Studio\"].endpoint)"
"webbrowser.open(pipeline_job.studio_url)"
]
},
{